The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(proxy): move proxy_server, _experimental and db tests into tests/unit/proxy (#44012)
devin-ai-integration[bot]24584d3d3dc6
diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.ymlindex e8483771569..a05c26eef7d 100644--- a/.github/workflows/test-unit.yml+++ b/.github/workflows/test-unit.yml@@ -187,7 +187,7 @@ jobs:- shard: proxy-serverartifact-name: proxy-server- test-path: "tests/test_litellm/proxy/proxy_server"+ test-path: "tests/unit/proxy/proxy_server"workers: 4reruns: 2timeout-minutes: 60@@ -196,11 +196,14 @@ jobs:- shard: proxy-infraartifact-name: proxy-infratest-path: >-- tests/test_litellm/proxy/db+ tests/unit/proxy/db+ --ignore=tests/unit/proxy/db/db_transaction_queue/test_e2e_pod_lock_manager.py+ --ignore=tests/unit/proxy/db/test_update_daily_tag_spend.pytests/test_litellm/proxy/middlewaretests/test_litellm/proxy/spend_trackingtests/test_litellm/proxy/pass_through_endpoints- tests/test_litellm/proxy/_experimental+ tests/unit/proxy/_experimental+ --ignore=tests/unit/proxy/_experimental/mcp_servertests/test_litellm/proxy/experimentaltests/test_litellm/proxy/common_utilstests/test_litellm/proxy/enterprise_billingdiff --git a/.gitignore b/.gitignoreindex 7da917ce450..ac8e2919372 100644--- a/.gitignore+++ b/.gitignore@@ -104,7 +104,7 @@ litellm_config.yaml.cursorlitellm/proxy/to_delete_loadtest_work/*update_model_cost_map.py-tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py+tests/unit/proxy/_experimental/mcp_server/test_mcp_server_manager.pyscripts/test_vertex_ai_search.pyLAZY_LOADING_IMPROVEMENTS.mdSTABILIZATION_TODO.mddiff --git a/Makefile b/Makefileindex ed1f9e3e1e5..421b811d8f3 100644--- a/Makefile+++ b/Makefile@@ -324,10 +324,10 @@ test-unit-proxy-guardrails: install-test-deps$(UV_RUN) pytest tests/unit/proxy/guardrails tests/unit/proxy/management_endpoints tests/unit/proxy/management_helpers --tb=short -vv -n 4 --durations=20test-unit-proxy-core: install-test-deps- $(UV_RUN) pytest tests/unit/proxy/auth tests/unit/proxy/client tests/test_litellm/proxy/db tests/unit/proxy/hooks tests/unit/proxy/policy_engine --tb=short -vv -n 4 --durations=20+ $(UV_RUN) pytest tests/unit/proxy/auth tests/unit/proxy/client tests/unit/proxy/db tests/unit/proxy/hooks tests/unit/proxy/policy_engine --ignore=tests/unit/proxy/db/db_transaction_queue/test_e2e_pod_lock_manager.py --ignore=tests/unit/proxy/db/test_update_daily_tag_spend.py --tb=short -vv -n 4 --durations=20test-unit-proxy-misc: install-test-deps- $(UV_RUN) pytest tests/test_litellm/proxy/_experimental tests/unit/proxy/agent_endpoints tests/unit/proxy/anthropic_endpoints tests/test_litellm/proxy/common_utils tests/unit/proxy/discovery_endpoints tests/test_litellm/proxy/experimental tests/unit/proxy/google_endpoints tests/unit/proxy/health_endpoints tests/unit/proxy/image_endpoints tests/test_litellm/proxy/middleware tests/unit/proxy/openai_files_endpoint tests/test_litellm/proxy/pass_through_endpoints tests/unit/proxy/prompts tests/unit/proxy/public_endpoints tests/unit/proxy/response_api_endpoints tests/unit/proxy/shutdown tests/test_litellm/proxy/spend_tracking tests/unit/proxy/ui_crud_endpoints tests/unit/proxy/vector_store_endpoints tests/test_litellm/proxy/test_*.py tests/unit/proxy/test_proxy_server_endpoints_and_startup.py tests/unit/proxy/test_proxy_utils_model_creation_and_error_logging.py tests/unit/proxy/_experimental/mcp_server/test_mcp_server_tool_calls_and_headers.py --ignore=tests/unit/proxy/google_endpoints/test_gemini_agents_endpoints.py --ignore=tests/unit/proxy/google_endpoints/test_google_endpoint_routing.py --ignore=tests/unit/proxy/google_endpoints/test_google_gemini_proxy_request.py --ignore=tests/unit/proxy/public_endpoints/test_blog_posts_endpoint.py --tb=short -vv -n 4 --durations=20+ $(UV_RUN) pytest tests/unit/proxy/agent_endpoints tests/unit/proxy/anthropic_endpoints tests/test_litellm/proxy/common_utils tests/unit/proxy/discovery_endpoints tests/test_litellm/proxy/experimental tests/unit/proxy/google_endpoints tests/unit/proxy/health_endpoints tests/unit/proxy/image_endpoints tests/test_litellm/proxy/middleware tests/unit/proxy/openai_files_endpoint tests/test_litellm/proxy/pass_through_endpoints tests/unit/proxy/prompts tests/unit/proxy/public_endpoints tests/unit/proxy/response_api_endpoints tests/unit/proxy/shutdown tests/test_litellm/proxy/spend_tracking tests/unit/proxy/ui_crud_endpoints tests/unit/proxy/vector_store_endpoints tests/test_litellm/proxy/test_*.py tests/unit/proxy/test_proxy_server_endpoints_and_startup.py tests/unit/proxy/test_proxy_utils_model_creation_and_error_logging.py tests/unit/proxy/_experimental/mcp_server/test_mcp_server_tool_calls_and_headers.py --ignore=tests/unit/proxy/google_endpoints/test_gemini_agents_endpoints.py --ignore=tests/unit/proxy/google_endpoints/test_google_endpoint_routing.py --ignore=tests/unit/proxy/google_endpoints/test_google_gemini_proxy_request.py --ignore=tests/unit/proxy/public_endpoints/test_blog_posts_endpoint.py --tb=short -vv -n 4 --durations=20test-unit-integrations: install-test-deps$(UV_RUN) pytest tests/unit/integrations --tb=short -vv -n 4 --durations=20diff --git a/tests/proxy_behavior/spend/test_autorouter_session_rollup.py b/tests/proxy_behavior/spend/test_autorouter_session_rollup.pyindex 9ef42f5dc7a..effb5ca83ed 100644--- a/tests/proxy_behavior/spend/test_autorouter_session_rollup.py+++ b/tests/proxy_behavior/spend/test_autorouter_session_rollup.py@@ -2,7 +2,7 @@Behavior tests for the LiteLLM_AutoRouterSession conditional upsert and the benchmarksaggregate, against a real Postgres. The classification lives in SQL, so these tests arethe ones that exercise it; the builder and flush contracts are unit-tested in-tests/test_litellm/proxy/db/test_autorouter_session_rollup.py.+tests/unit/proxy/db/test_autorouter_session_rollup.py."""import asynciodiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/conftest.py b/tests/test_litellm/proxy/_experimental/mcp_server/conftest.pydeleted file mode 100644index 76e92efd31a..00000000000--- a/tests/test_litellm/proxy/_experimental/mcp_server/conftest.py+++ /dev/null@@ -1,80 +0,0 @@-import os--import pytest--[email protected](autouse=True)-def _hermetic_mcp_server_registry():- """Restore the singleton ``global_mcp_server_manager``'s registry state around every- test, so entries seeded by one test never leak into another on a shared shard."""- from litellm.proxy._experimental.mcp_server.mcp_server_manager import (- global_mcp_server_manager,- )-- saved_registry = dict(global_mcp_server_manager.registry)- saved_config_servers = dict(global_mcp_server_manager.config_mcp_servers)- saved_tool_mapping = dict(global_mcp_server_manager.tool_name_to_mcp_server_name_mapping)- saved_oauth_slots = global_mcp_server_manager._oauth_discovery_slots- try:- yield- finally:- global_mcp_server_manager.registry.clear()- global_mcp_server_manager.registry.update(saved_registry)- global_mcp_server_manager.config_mcp_servers.clear()- global_mcp_server_manager.config_mcp_servers.update(saved_config_servers)- global_mcp_server_manager.tool_name_to_mcp_server_name_mapping.clear()- global_mcp_server_manager.tool_name_to_mcp_server_name_mapping.update(saved_tool_mapping)- global_mcp_server_manager._oauth_discovery_slots = saved_oauth_slots--[email protected](autouse=True)-def _hermetic_server_root_path():- """Isolate MCP discovery tests from a leaked ``SERVER_ROOT_PATH``.-- ``tests/test_litellm/proxy/test_custom_proxy.py`` sets ``SERVER_ROOT_PATH`` at import time- (its app mounts under a custom path) and never restores it, so in a shared shard the value- leaks into this process. The discovery routes and the 401 challenges read it, so a leaked- value would silently rewrite every ``resource_metadata`` URL and make these tests depend on- shard ordering. Clearing it here pins the default (root-mounted) deployment; a test that- exercises a sub-path deployment sets the value explicitly within its own body.- """- saved = os.environ.pop("SERVER_ROOT_PATH", None)- try:- yield- finally:- if saved is not None:- os.environ["SERVER_ROOT_PATH"] = saved---def config_only_mcp_manager_factory():- from litellm.proxy._experimental.mcp_server.mcp_server_manager import MCPServerManager-- class ConfigOnlyManager(MCPServerManager):- def initialize_tool_name_to_mcp_server_name_mapping(self):- return None-- return ConfigOnlyManager---def _mcp_request_ctx():- def _mcp_request_ctx(**overrides):- from types import SimpleNamespace-- from mcp.server.context import ServerRequestContext-- kwargs = {- "session": SimpleNamespace(),- "lifespan_context": {},- "protocol_version": "2025-06-18",- "method": "",- "params": None,- "request_id": 1,- "meta": None,- "request": None,- }- kwargs.update(overrides)- return ServerRequestContext(**kwargs)-- return _mcp_request_ctxdiff --git a/tests/test_litellm/proxy/proxy_server/__init__.py b/tests/unit/proxy/_experimental/mcp_server/auth/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/__init__.pyrename to tests/unit/proxy/_experimental/mcp_server/auth/__init__.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/auth/test_managed_agent_access.py b/tests/unit/proxy/_experimental/mcp_server/auth/test_managed_agent_access.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/auth/test_managed_agent_access.pyrename to tests/unit/proxy/_experimental/mcp_server/auth/test_managed_agent_access.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/auth/test_token_endpoint_auth.py b/tests/unit/proxy/_experimental/mcp_server/auth/test_token_endpoint_auth.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/auth/test_token_endpoint_auth.pyrename to tests/unit/proxy/_experimental/mcp_server/auth/test_token_endpoint_auth.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py b/tests/unit/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.pyrename to tests/unit/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.pydiff --git a/tests/unit/proxy/_experimental/mcp_server/faults/__init__.py b/tests/unit/proxy/_experimental/mcp_server/faults/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/faults/test_classify.py b/tests/unit/proxy/_experimental/mcp_server/faults/test_classify.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/faults/test_classify.pyrename to tests/unit/proxy/_experimental/mcp_server/faults/test_classify.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/faults/test_list_outcomes.py b/tests/unit/proxy/_experimental/mcp_server/faults/test_list_outcomes.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/faults/test_list_outcomes.pyrename to tests/unit/proxy/_experimental/mcp_server/faults/test_list_outcomes.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/faults/test_render_oauth.py b/tests/unit/proxy/_experimental/mcp_server/faults/test_render_oauth.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/faults/test_render_oauth.pyrename to tests/unit/proxy/_experimental/mcp_server/faults/test_render_oauth.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/faults/test_traversal.py b/tests/unit/proxy/_experimental/mcp_server/faults/test_traversal.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/faults/test_traversal.pyrename to tests/unit/proxy/_experimental/mcp_server/faults/test_traversal.pydiff --git a/tests/unit/proxy/_experimental/mcp_server/guardrail_translation/__init__.py b/tests/unit/proxy/_experimental/mcp_server/guardrail_translation/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/guardrail_translation/test_mcp_guardrail_handler.py b/tests/unit/proxy/_experimental/mcp_server/guardrail_translation/test_mcp_guardrail_handler.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/guardrail_translation/test_mcp_guardrail_handler.pyrename to tests/unit/proxy/_experimental/mcp_server/guardrail_translation/test_mcp_guardrail_handler.pydiff --git a/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/__init__.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_adapter.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_adapter.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_adapter.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_adapter.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_authz_code_refresher.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_authz_code_refresher.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_authz_code_refresher.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_authz_code_refresher.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_bridge_credentials.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_bridge_credentials.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_bridge_credentials.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_bridge_credentials.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_client_credentials.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_client_credentials.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_client_credentials.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_client_credentials.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_dual_cache_token_backend.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_dual_cache_token_backend.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_dual_cache_token_backend.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_dual_cache_token_backend.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_envelope.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_envelope.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_envelope.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_envelope.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_httpx_auth.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_httpx_auth.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_httpx_auth.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_httpx_auth.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_oauth_token_store.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_oauth_token_store.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_oauth_token_store.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_oauth_token_store.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_per_user_oauth_store.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_per_user_oauth_store.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_per_user_oauth_store.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_per_user_oauth_store.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_presented_token_store.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_presented_token_store.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_presented_token_store.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_presented_token_store.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_redis_distributed_lock.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_redis_distributed_lock.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_redis_distributed_lock.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_redis_distributed_lock.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_redis_refresh_coordinator.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_redis_refresh_coordinator.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_redis_refresh_coordinator.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_redis_refresh_coordinator.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_resolver.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_resolver.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_resolver.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_resolver.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_result.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_result.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_result.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_result.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_session_credentials.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_session_credentials.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_session_credentials.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_session_credentials.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_session_token.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_session_token.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_session_token.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_session_token.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_refresher.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_refresher.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_refresher.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_refresher.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_store.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_store.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_store.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_store.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_token_cache_codec.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_token_cache_codec.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_token_cache_codec.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_token_cache_codec.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_token_endpoint.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_token_endpoint.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_token_endpoint.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_token_endpoint.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_token_exchange_provider.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_token_exchange_provider.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_token_exchange_provider.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_token_exchange_provider.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_token_exchanger.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_token_exchanger.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_token_exchanger.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_token_exchanger.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_types.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_types.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_types.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_types.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_v2_token_store.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_v2_token_store.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_v2_token_store.pyrename to tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_v2_token_store.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_byok_credential_cache.py b/tests/unit/proxy/_experimental/mcp_server/test_byok_credential_cache.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_byok_credential_cache.pyrename to tests/unit/proxy/_experimental/mcp_server/test_byok_credential_cache.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_byok_oauth_endpoints.py b/tests/unit/proxy/_experimental/mcp_server/test_byok_oauth_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_byok_oauth_endpoints.pyrename to tests/unit/proxy/_experimental/mcp_server/test_byok_oauth_endpoints.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_callback_oauth_error_responses.py b/tests/unit/proxy/_experimental/mcp_server/test_callback_oauth_error_responses.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_callback_oauth_error_responses.pyrename to tests/unit/proxy/_experimental/mcp_server/test_callback_oauth_error_responses.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_capabilities.py b/tests/unit/proxy/_experimental/mcp_server/test_capabilities.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_capabilities.pyrename to tests/unit/proxy/_experimental/mcp_server/test_capabilities.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_client_allowlist.py b/tests/unit/proxy/_experimental/mcp_server/test_client_allowlist.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_client_allowlist.pyrename to tests/unit/proxy/_experimental/mcp_server/test_client_allowlist.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_contracts.py b/tests/unit/proxy/_experimental/mcp_server/test_contracts.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_contracts.pyrename to tests/unit/proxy/_experimental/mcp_server/test_contracts.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_db_credentials.py b/tests/unit/proxy/_experimental/mcp_server/test_db_credentials.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_db_credentials.pyrename to tests/unit/proxy/_experimental/mcp_server/test_db_credentials.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_discoverable_endpoints.py b/tests/unit/proxy/_experimental/mcp_server/test_discoverable_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_discoverable_endpoints.pyrename to tests/unit/proxy/_experimental/mcp_server/test_discoverable_endpoints.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_gateway_dcr_flow.py b/tests/unit/proxy/_experimental/mcp_server/test_gateway_dcr_flow.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_gateway_dcr_flow.pyrename to tests/unit/proxy/_experimental/mcp_server/test_gateway_dcr_flow.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_idp_token_exchange.py b/tests/unit/proxy/_experimental/mcp_server/test_idp_token_exchange.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_idp_token_exchange.pyrename to tests/unit/proxy/_experimental/mcp_server/test_idp_token_exchange.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_is_tool_name_prefixed.py b/tests/unit/proxy/_experimental/mcp_server/test_is_tool_name_prefixed.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_is_tool_name_prefixed.pyrename to tests/unit/proxy/_experimental/mcp_server/test_is_tool_name_prefixed.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_jwt_mcp_enforcement.py b/tests/unit/proxy/_experimental/mcp_server/test_jwt_mcp_enforcement.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_jwt_mcp_enforcement.pyrename to tests/unit/proxy/_experimental/mcp_server/test_jwt_mcp_enforcement.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_jwt_mcp_simple.py b/tests/unit/proxy/_experimental/mcp_server/test_jwt_mcp_simple.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_jwt_mcp_simple.pyrename to tests/unit/proxy/_experimental/mcp_server/test_jwt_mcp_simple.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_block_recording.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_block_recording.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_block_recording.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_block_recording.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_cost_calculator.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_cost_calculator.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_cost_calculator.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_cost_calculator.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_custom_fields.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_custom_fields.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_custom_fields.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_custom_fields.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_debug.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_debug.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_debug.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_debug.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_discovery.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_discovery.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_discovery.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_discovery.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_elicitation_handler.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_elicitation_handler.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_elicitation_handler.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_elicitation_handler.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_env_vars.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_env_vars.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_env_vars.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_env_vars.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_guardrail_usage_monitor.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_guardrail_usage_monitor.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_guardrail_usage_monitor.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_guardrail_usage_monitor.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_header_alias_utils.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_header_alias_utils.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_header_alias_utils.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_header_alias_utils.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_hook_extra_headers.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_hook_extra_headers.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_hook_extra_headers.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_hook_extra_headers.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_max_concurrent_requests.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_max_concurrent_requests.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_max_concurrent_requests.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_max_concurrent_requests.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_metadata_preservation.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_metadata_preservation.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_metadata_preservation.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_metadata_preservation.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_cold_start.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_cold_start.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_cold_start.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_cold_start.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_tools.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_tools.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_tools.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_tools.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_partial_update.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_partial_update.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_partial_update.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_partial_update.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_proxy_mode.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_proxy_mode.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_proxy_mode.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_proxy_mode.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_completion_flow.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_completion_flow.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_completion_flow.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_completion_flow.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_access.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_model_access.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_access.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_model_access.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_request_builder.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_request_builder.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_request_builder.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_request_builder.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_response_conversion.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_response_conversion.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_response_conversion.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_response_conversion.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_tool_conversion.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_tool_conversion.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_tool_conversion.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_sampling_tool_conversion.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_identity_env.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_server_identity_env.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_identity_env.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_server_identity_env.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_server_manager.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_server_manager.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_session_logging.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_session_logging.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_session_logging.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_session_logging.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sigv4_auth.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_sigv4_auth.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sigv4_auth.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_sigv4_auth.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_stale_session.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_stale_session.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_stale_session.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_stale_session.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_tool_search.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_tool_search.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_tool_search.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_tool_search.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_toolset_scope.py b/tests/unit/proxy/_experimental/mcp_server/test_mcp_toolset_scope.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_toolset_scope.pyrename to tests/unit/proxy/_experimental/mcp_server/test_mcp_toolset_scope.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_oauth2_flow_backfill.py b/tests/unit/proxy/_experimental/mcp_server/test_oauth2_flow_backfill.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_oauth2_flow_backfill.pyrename to tests/unit/proxy/_experimental/mcp_server/test_oauth2_flow_backfill.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_oauth2_token_cache.py b/tests/unit/proxy/_experimental/mcp_server/test_oauth2_token_cache.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_oauth2_token_cache.pyrename to tests/unit/proxy/_experimental/mcp_server/test_oauth2_token_cache.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_oauth_identity_binding.py b/tests/unit/proxy/_experimental/mcp_server/test_oauth_identity_binding.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_oauth_identity_binding.pyrename to tests/unit/proxy/_experimental/mcp_server/test_oauth_identity_binding.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_oauth_issuer_stamp_backfill.py b/tests/unit/proxy/_experimental/mcp_server/test_oauth_issuer_stamp_backfill.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_oauth_issuer_stamp_backfill.pyrename to tests/unit/proxy/_experimental/mcp_server/test_oauth_issuer_stamp_backfill.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_openapi_to_mcp_generator.py b/tests/unit/proxy/_experimental/mcp_server/test_openapi_to_mcp_generator.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_openapi_to_mcp_generator.pyrename to tests/unit/proxy/_experimental/mcp_server/test_openapi_to_mcp_generator.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_openapi_tool_auth.py b/tests/unit/proxy/_experimental/mcp_server/test_openapi_tool_auth.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_openapi_tool_auth.pyrename to tests/unit/proxy/_experimental/mcp_server/test_openapi_tool_auth.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_operations.py b/tests/unit/proxy/_experimental/mcp_server/test_operations.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_operations.pyrename to tests/unit/proxy/_experimental/mcp_server/test_operations.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_proxy_api_credentials.py b/tests/unit/proxy/_experimental/mcp_server/test_proxy_api_credentials.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_proxy_api_credentials.pyrename to tests/unit/proxy/_experimental/mcp_server/test_proxy_api_credentials.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py b/tests/unit/proxy/_experimental/mcp_server/test_rest_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.pyrename to tests/unit/proxy/_experimental/mcp_server/test_rest_endpoints.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_result_conversion.py b/tests/unit/proxy/_experimental/mcp_server/test_result_conversion.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_result_conversion.pyrename to tests/unit/proxy/_experimental/mcp_server/test_result_conversion.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_semantic_tool_filter.py b/tests/unit/proxy/_experimental/mcp_server/test_semantic_tool_filter.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_semantic_tool_filter.pyrename to tests/unit/proxy/_experimental/mcp_server/test_semantic_tool_filter.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_server_resolution.py b/tests/unit/proxy/_experimental/mcp_server/test_server_resolution.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_server_resolution.pyrename to tests/unit/proxy/_experimental/mcp_server/test_server_resolution.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_short_mcp_tool_prefix.py b/tests/unit/proxy/_experimental/mcp_server/test_short_mcp_tool_prefix.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_short_mcp_tool_prefix.pyrename to tests/unit/proxy/_experimental/mcp_server/test_short_mcp_tool_prefix.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_ui_session_utils.py b/tests/unit/proxy/_experimental/mcp_server/test_ui_session_utils.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_ui_session_utils.pyrename to tests/unit/proxy/_experimental/mcp_server/test_ui_session_utils.pydiff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_utils.py b/tests/unit/proxy/_experimental/mcp_server/test_utils.pysimilarity index 100%rename from tests/test_litellm/proxy/_experimental/mcp_server/test_utils.pyrename to tests/unit/proxy/_experimental/mcp_server/test_utils.pydiff --git a/tests/unit/proxy/conftest.py b/tests/unit/proxy/conftest.pyindex 0e8acf3b905..23b4b6078f7 100644--- a/tests/unit/proxy/conftest.py+++ b/tests/unit/proxy/conftest.py@@ -56,7 +56,7 @@ def _snapshot_mutable_state(module):continueif value is None or isinstance(value, _SNAPSHOT_TYPES):try:- snapshot[attr] = copy.deepcopy(value)+ snapshot[attr] = _restored_value(value)except Exception as exc:warnings.warn(f"conftest: could not snapshot {module.__name__}.{attr}: {exc}",@@ -65,10 +65,25 @@ def _snapshot_mutable_state(module):return snapshot+_MUTABLE_CONTAINERS = (list, dict, set, bytearray)+++def _holds_mutable_container(value) -> bool:+ if isinstance(value, _MUTABLE_CONTAINERS):+ return True+ if isinstance(value, tuple):+ return any(_holds_mutable_container(element) for element in value)+ return False+++def _restored_value(value):+ return copy.deepcopy(value) if _holds_mutable_container(value) else value++def _restore_mutable_state(module, snapshot):for attr, default in snapshot.items():try:- setattr(module, attr, copy.deepcopy(default))+ setattr(module, attr, _restored_value(default))except Exception as exc:warnings.warn(f"conftest: could not restore {module.__name__}.{attr}: {exc}",diff --git a/tests/test_litellm/proxy/db/conftest.py b/tests/unit/proxy/db/conftest.pysimilarity index 100%rename from tests/test_litellm/proxy/db/conftest.pyrename to tests/unit/proxy/db/conftest.pydiff --git a/tests/test_litellm/proxy/db/db_transaction_queue/test_base_update_queue.py b/tests/unit/proxy/db/db_transaction_queue/test_base_update_queue.pysimilarity index 100%rename from tests/test_litellm/proxy/db/db_transaction_queue/test_base_update_queue.pyrename to tests/unit/proxy/db/db_transaction_queue/test_base_update_queue.pydiff --git a/tests/test_litellm/proxy/db/db_transaction_queue/test_daily_spend_update_queue.py b/tests/unit/proxy/db/db_transaction_queue/test_daily_spend_update_queue.pysimilarity index 100%rename from tests/test_litellm/proxy/db/db_transaction_queue/test_daily_spend_update_queue.pyrename to tests/unit/proxy/db/db_transaction_queue/test_daily_spend_update_queue.pydiff --git a/tests/test_litellm/proxy/db/db_transaction_queue/test_pod_lock_manager.py b/tests/unit/proxy/db/db_transaction_queue/test_pod_lock_manager.pysimilarity index 100%rename from tests/test_litellm/proxy/db/db_transaction_queue/test_pod_lock_manager.pyrename to tests/unit/proxy/db/db_transaction_queue/test_pod_lock_manager.pydiff --git a/tests/test_litellm/proxy/db/db_transaction_queue/test_redis_update_buffer.py b/tests/unit/proxy/db/db_transaction_queue/test_redis_update_buffer.pysimilarity index 100%rename from tests/test_litellm/proxy/db/db_transaction_queue/test_redis_update_buffer.pyrename to tests/unit/proxy/db/db_transaction_queue/test_redis_update_buffer.pydiff --git a/tests/test_litellm/proxy/db/db_transaction_queue/test_spend_logs_partition_manager.py b/tests/unit/proxy/db/db_transaction_queue/test_spend_logs_partition_manager.pysimilarity index 100%rename from tests/test_litellm/proxy/db/db_transaction_queue/test_spend_logs_partition_manager.pyrename to tests/unit/proxy/db/db_transaction_queue/test_spend_logs_partition_manager.pydiff --git a/tests/test_litellm/proxy/db/db_transaction_queue/test_spend_update_queue.py b/tests/unit/proxy/db/db_transaction_queue/test_spend_update_queue.pysimilarity index 100%rename from tests/test_litellm/proxy/db/db_transaction_queue/test_spend_update_queue.pyrename to tests/unit/proxy/db/db_transaction_queue/test_spend_update_queue.pydiff --git a/tests/test_litellm/proxy/db/db_transaction_queue/test_tool_discovery_queue.py b/tests/unit/proxy/db/db_transaction_queue/test_tool_discovery_queue.pysimilarity index 100%rename from tests/test_litellm/proxy/db/db_transaction_queue/test_tool_discovery_queue.pyrename to tests/unit/proxy/db/db_transaction_queue/test_tool_discovery_queue.pydiff --git a/tests/test_litellm/proxy/db/db_transaction_queue/test_window_spend_update_queue.py b/tests/unit/proxy/db/db_transaction_queue/test_window_spend_update_queue.pysimilarity index 100%rename from tests/test_litellm/proxy/db/db_transaction_queue/test_window_spend_update_queue.pyrename to tests/unit/proxy/db/db_transaction_queue/test_window_spend_update_queue.pydiff --git a/tests/unit/proxy/db/mcp_server/__init__.py b/tests/unit/proxy/db/mcp_server/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/db/mcp_server/test_db.py b/tests/unit/proxy/db/mcp_server/test_db.pysimilarity index 100%rename from tests/test_litellm/proxy/db/mcp_server/test_db.pyrename to tests/unit/proxy/db/mcp_server/test_db.pydiff --git a/tests/test_litellm/proxy/db/test_autorouter_session_rollup.py b/tests/unit/proxy/db/test_autorouter_session_rollup.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_autorouter_session_rollup.pyrename to tests/unit/proxy/db/test_autorouter_session_rollup.pydiff --git a/tests/test_litellm/proxy/db/test_budget_window_spend_writer.py b/tests/unit/proxy/db/test_budget_window_spend_writer.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_budget_window_spend_writer.pyrename to tests/unit/proxy/db/test_budget_window_spend_writer.pydiff --git a/tests/test_litellm/proxy/db/test_check_migration.py b/tests/unit/proxy/db/test_check_migration.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_check_migration.pyrename to tests/unit/proxy/db/test_check_migration.pydiff --git a/tests/test_litellm/proxy/db/test_create_views.py b/tests/unit/proxy/db/test_create_views.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_create_views.pyrename to tests/unit/proxy/db/test_create_views.pydiff --git a/tests/test_litellm/proxy/db/test_daily_spend_bulk_upsert.py b/tests/unit/proxy/db/test_daily_spend_bulk_upsert.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_daily_spend_bulk_upsert.pyrename to tests/unit/proxy/db/test_daily_spend_bulk_upsert.pydiff --git a/tests/test_litellm/proxy/db/test_db_lookup_gate.py b/tests/unit/proxy/db/test_db_lookup_gate.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_db_lookup_gate.pyrename to tests/unit/proxy/db/test_db_lookup_gate.pydiff --git a/tests/test_litellm/proxy/db/test_db_spend_update_writer.py b/tests/unit/proxy/db/test_db_spend_update_writer.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_db_spend_update_writer.pyrename to tests/unit/proxy/db/test_db_spend_update_writer.pydiff --git a/tests/test_litellm/proxy/db/test_db_url_settings.py b/tests/unit/proxy/db/test_db_url_settings.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_db_url_settings.pyrename to tests/unit/proxy/db/test_db_url_settings.pydiff --git a/tests/test_litellm/proxy/db/test_exception_handler.py b/tests/unit/proxy/db/test_exception_handler.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_exception_handler.pyrename to tests/unit/proxy/db/test_exception_handler.pydiff --git a/tests/test_litellm/proxy/db/test_exception_handler_reconnect_retry.py b/tests/unit/proxy/db/test_exception_handler_reconnect_retry.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_exception_handler_reconnect_retry.pyrename to tests/unit/proxy/db/test_exception_handler_reconnect_retry.pydiff --git a/tests/test_litellm/proxy/db/test_gateway_request_tracking.py b/tests/unit/proxy/db/test_gateway_request_tracking.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_gateway_request_tracking.pyrename to tests/unit/proxy/db/test_gateway_request_tracking.pydiff --git a/tests/test_litellm/proxy/db/test_health_check_latest.py b/tests/unit/proxy/db/test_health_check_latest.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_health_check_latest.pyrename to tests/unit/proxy/db/test_health_check_latest.pydiff --git a/tests/test_litellm/proxy/db/test_master_key_migration.py b/tests/unit/proxy/db/test_master_key_migration.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_master_key_migration.pyrename to tests/unit/proxy/db/test_master_key_migration.pydiff --git a/tests/test_litellm/proxy/db/test_model_access_group_spend.py b/tests/unit/proxy/db/test_model_access_group_spend.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_model_access_group_spend.pyrename to tests/unit/proxy/db/test_model_access_group_spend.pydiff --git a/tests/test_litellm/proxy/db/test_model_insights_tasks.py b/tests/unit/proxy/db/test_model_insights_tasks.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_model_insights_tasks.pyrename to tests/unit/proxy/db/test_model_insights_tasks.pydiff --git a/tests/test_litellm/proxy/db/test_model_usage_rollup.py b/tests/unit/proxy/db/test_model_usage_rollup.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_model_usage_rollup.pyrename to tests/unit/proxy/db/test_model_usage_rollup.pydiff --git a/tests/test_litellm/proxy/db/test_pgbouncer.py b/tests/unit/proxy/db/test_pgbouncer.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_pgbouncer.pyrename to tests/unit/proxy/db/test_pgbouncer.pydiff --git a/tests/test_litellm/proxy/db/test_prisma_client.py b/tests/unit/proxy/db/test_prisma_client.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_prisma_client.pyrename to tests/unit/proxy/db/test_prisma_client.pydiff --git a/tests/test_litellm/proxy/db/test_prisma_planned_engine_restart.py b/tests/unit/proxy/db/test_prisma_planned_engine_restart.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_prisma_planned_engine_restart.pyrename to tests/unit/proxy/db/test_prisma_planned_engine_restart.pydiff --git a/tests/test_litellm/proxy/db/test_prisma_self_heal.py b/tests/unit/proxy/db/test_prisma_self_heal.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_prisma_self_heal.pyrename to tests/unit/proxy/db/test_prisma_self_heal.pydiff --git a/tests/test_litellm/proxy/db/test_proxy_worker_heartbeat.py b/tests/unit/proxy/db/test_proxy_worker_heartbeat.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_proxy_worker_heartbeat.pyrename to tests/unit/proxy/db/test_proxy_worker_heartbeat.pydiff --git a/tests/test_litellm/proxy/db/test_query_engine_reaper.py b/tests/unit/proxy/db/test_query_engine_reaper.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_query_engine_reaper.pyrename to tests/unit/proxy/db/test_query_engine_reaper.pydiff --git a/tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py b/tests/unit/proxy/db/test_rds_iam_token_expiry.pysimilarity index 99%rename from tests/test_litellm/proxy/db/test_rds_iam_token_expiry.pyrename to tests/unit/proxy/db/test_rds_iam_token_expiry.pyindex ca24f856022..5e2356dedea 100644--- a/tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py+++ b/tests/unit/proxy/db/test_rds_iam_token_expiry.py@@ -10,7 +10,7 @@ The fix implements:4. Fixed __getattr__ fallback that now waits for reconnectionRun these tests:- uv run pytest tests/test_litellm/proxy/db/test_rds_iam_token_expiry.py -v -s+ uv run pytest tests/unit/proxy/db/test_rds_iam_token_expiry.py -v -s"""import asynciodiff --git a/tests/test_litellm/proxy/db/test_replica_identity.py b/tests/unit/proxy/db/test_replica_identity.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_replica_identity.pyrename to tests/unit/proxy/db/test_replica_identity.pydiff --git a/tests/test_litellm/proxy/db/test_routing_prisma_wrapper.py b/tests/unit/proxy/db/test_routing_prisma_wrapper.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_routing_prisma_wrapper.pyrename to tests/unit/proxy/db/test_routing_prisma_wrapper.pydiff --git a/tests/test_litellm/proxy/db/test_shadow_eval_funnel.py b/tests/unit/proxy/db/test_shadow_eval_funnel.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_shadow_eval_funnel.pyrename to tests/unit/proxy/db/test_shadow_eval_funnel.pydiff --git a/tests/test_litellm/proxy/db/test_spend_counter_reseed.py b/tests/unit/proxy/db/test_spend_counter_reseed.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_spend_counter_reseed.pyrename to tests/unit/proxy/db/test_spend_counter_reseed.pydiff --git a/tests/test_litellm/proxy/db/test_spend_log_batching.py b/tests/unit/proxy/db/test_spend_log_batching.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_spend_log_batching.pyrename to tests/unit/proxy/db/test_spend_log_batching.pydiff --git a/tests/test_litellm/proxy/db/test_spend_log_tool_index.py b/tests/unit/proxy/db/test_spend_log_tool_index.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_spend_log_tool_index.pyrename to tests/unit/proxy/db/test_spend_log_tool_index.pydiff --git a/tests/test_litellm/proxy/db/test_token_auth.py b/tests/unit/proxy/db/test_token_auth.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_token_auth.pyrename to tests/unit/proxy/db/test_token_auth.pydiff --git a/tests/test_litellm/proxy/db/test_tool_registry_writer.py b/tests/unit/proxy/db/test_tool_registry_writer.pysimilarity index 100%rename from tests/test_litellm/proxy/db/test_tool_registry_writer.pyrename to tests/unit/proxy/db/test_tool_registry_writer.pydiff --git a/tests/test_litellm/proxy/proxy_server/.coverage_baseline b/tests/unit/proxy/proxy_server/.coverage_baselinesimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/.coverage_baselinerename to tests/unit/proxy/proxy_server/.coverage_baselinediff --git a/tests/unit/proxy/proxy_server/__init__.py b/tests/unit/proxy/proxy_server/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/proxy_server/_coverage_check.py b/tests/unit/proxy/proxy_server/_coverage_check.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/_coverage_check.pyrename to tests/unit/proxy/proxy_server/_coverage_check.pydiff --git a/tests/test_litellm/proxy/proxy_server/_pin_check.py b/tests/unit/proxy/proxy_server/_pin_check.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/_pin_check.pyrename to tests/unit/proxy/proxy_server/_pin_check.pydiff --git a/tests/test_litellm/proxy/proxy_server/conftest.py b/tests/unit/proxy/proxy_server/conftest.pysimilarity index 99%rename from tests/test_litellm/proxy/proxy_server/conftest.pyrename to tests/unit/proxy/proxy_server/conftest.pyindex ae1b42363ef..0d7ec4812ce 100644--- a/tests/test_litellm/proxy/proxy_server/conftest.py+++ b/tests/unit/proxy/proxy_server/conftest.py@@ -1,4 +1,4 @@-"""Shared fixtures for tests/test_litellm/proxy/proxy_server/.+"""Shared fixtures for tests/unit/proxy/proxy_server/.All fixtures and helpers used by PR1/PR2/PR3 test files live here. Do NOTadd fixtures inside individual test files. If a fixture is missing, add itdiff --git a/tests/test_litellm/proxy/proxy_server/test_background_health.py b/tests/unit/proxy/proxy_server/test_background_health.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_background_health.pyrename to tests/unit/proxy/proxy_server/test_background_health.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_exception_handlers.py b/tests/unit/proxy/proxy_server/test_exception_handlers.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_exception_handlers.pyrename to tests/unit/proxy/proxy_server/test_exception_handlers.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_harness_smoke.py b/tests/unit/proxy/proxy_server/test_harness_smoke.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_harness_smoke.pyrename to tests/unit/proxy/proxy_server/test_harness_smoke.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_lifecycle.py b/tests/unit/proxy/proxy_server/test_lifecycle.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_lifecycle.pyrename to tests/unit/proxy/proxy_server/test_lifecycle.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_openapi_customization.py b/tests/unit/proxy/proxy_server/test_openapi_customization.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_openapi_customization.pyrename to tests/unit/proxy/proxy_server/test_openapi_customization.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_proxy_config.py b/tests/unit/proxy/proxy_server/test_proxy_config.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_proxy_config.pyrename to tests/unit/proxy/proxy_server/test_proxy_config.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_anthropic_beta.py b/tests/unit/proxy/proxy_server/test_routes_anthropic_beta.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_anthropic_beta.pyrename to tests/unit/proxy/proxy_server/test_routes_anthropic_beta.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_assistants.py b/tests/unit/proxy/proxy_server/test_routes_assistants.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_assistants.pyrename to tests/unit/proxy/proxy_server/test_routes_assistants.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_audio.py b/tests/unit/proxy/proxy_server/test_routes_audio.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_audio.pyrename to tests/unit/proxy/proxy_server/test_routes_audio.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_chat_completions.py b/tests/unit/proxy/proxy_server/test_routes_chat_completions.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_chat_completions.pyrename to tests/unit/proxy/proxy_server/test_routes_chat_completions.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_completions.py b/tests/unit/proxy/proxy_server/test_routes_completions.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_completions.pyrename to tests/unit/proxy/proxy_server/test_routes_completions.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_config.py b/tests/unit/proxy/proxy_server/test_routes_config.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_config.pyrename to tests/unit/proxy/proxy_server/test_routes_config.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_embeddings.py b/tests/unit/proxy/proxy_server/test_routes_embeddings.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_embeddings.pyrename to tests/unit/proxy/proxy_server/test_routes_embeddings.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_invitation.py b/tests/unit/proxy/proxy_server/test_routes_invitation.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_invitation.pyrename to tests/unit/proxy/proxy_server/test_routes_invitation.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_login_sso.py b/tests/unit/proxy/proxy_server/test_routes_login_sso.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_login_sso.pyrename to tests/unit/proxy/proxy_server/test_routes_login_sso.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_misc.py b/tests/unit/proxy/proxy_server/test_routes_misc.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_misc.pyrename to tests/unit/proxy/proxy_server/test_routes_misc.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_model_cost_map.py b/tests/unit/proxy/proxy_server/test_routes_model_cost_map.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_model_cost_map.pyrename to tests/unit/proxy/proxy_server/test_routes_model_cost_map.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_model_info.py b/tests/unit/proxy/proxy_server/test_routes_model_info.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_model_info.pyrename to tests/unit/proxy/proxy_server/test_routes_model_info.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_model_metrics.py b/tests/unit/proxy/proxy_server/test_routes_model_metrics.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_model_metrics.pyrename to tests/unit/proxy/proxy_server/test_routes_model_metrics.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_models.py b/tests/unit/proxy/proxy_server/test_routes_models.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_models.pyrename to tests/unit/proxy/proxy_server/test_routes_models.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_moderations.py b/tests/unit/proxy/proxy_server/test_routes_moderations.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_moderations.pyrename to tests/unit/proxy/proxy_server/test_routes_moderations.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_onboarding.py b/tests/unit/proxy/proxy_server/test_routes_onboarding.pysimilarity index 95%rename from tests/test_litellm/proxy/proxy_server/test_routes_onboarding.pyrename to tests/unit/proxy/proxy_server/test_routes_onboarding.pyindex 6c1d869d113..f96e2d1e367 100644--- a/tests/test_litellm/proxy/proxy_server/test_routes_onboarding.py+++ b/tests/unit/proxy/proxy_server/test_routes_onboarding.py@@ -8,11 +8,14 @@ Routes covered:from __future__ import annotationsfrom datetime import datetime, timedelta, timezone+import hashlibfrom types import SimpleNamespacefrom unittest.mock import AsyncMock, MagicMock+import httpximport jwtimport pytest+import respxfrom .conftest import normalize@@ -202,7 +205,17 @@ def _make_onboarding_jwt()-def test_claim_onboarding_link_happy(client, monkeypatch, mock_prisma):+def _hibp_url_for(password: str) -> str:+ sha1 = hashlib.sha1(password.encode("utf-8"), usedforsecurity=False).hexdigest().upper()+ return f"https://api.pwnedpasswords.com/range/{sha1[:5]}"+++def _hibp_suffix_for(password: str) -> str:+ return hashlib.sha1(password.encode("utf-8"), usedforsecurity=False).hexdigest().upper()[5:]+++def test_claim_onboarding_link_happy(client, monkeypatch, mock_prisma, httpx_transport):"""Valid claim → returns login_url, token, user_email, user."""from litellm.proxy import proxy_server as ps@@ -228,13 +241,18 @@ def test_claim_onboarding_link_happy(client, monkeypatch, mock_prisma):ps, "_generate_onboarding_ui_session_token", _fake_session_token)+ password = "Hunter2Strong!"+ respx.get(_hibp_url_for(password)).mock(+ return_value=httpx.Response(200, text=f"{_hibp_suffix_for('unrelated-password')}:9")+ )+onboarding_jwt = _make_onboarding_jwt("sk-master-test")response = client.post("/onboarding/claim_token",json={"invitation_link": "inv-123","user_id": "user-abc",- "password": "Hunter2Strong!",+ "password": password,},headers={"Authorization": f"Bearer {onboarding_jwt}"},)diff --git a/tests/test_litellm/proxy/proxy_server/test_routes_queue.py b/tests/unit/proxy/proxy_server/test_routes_queue.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_queue.pyrename to tests/unit/proxy/proxy_server/test_routes_queue.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_threads.py b/tests/unit/proxy/proxy_server/test_routes_threads.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_routes_threads.pyrename to tests/unit/proxy/proxy_server/test_routes_threads.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_routes_utils.py b/tests/unit/proxy/proxy_server/test_routes_utils.pysimilarity index 98%rename from tests/test_litellm/proxy/proxy_server/test_routes_utils.pyrename to tests/unit/proxy/proxy_server/test_routes_utils.pyindex 6cd613197ee..91329d122ee 100644--- a/tests/test_litellm/proxy/proxy_server/test_routes_utils.py+++ b/tests/unit/proxy/proxy_server/test_routes_utils.py@@ -12,7 +12,9 @@ from __future__ import annotationsimport asyncioimport json+import httpximport pytest+import respximport litellmfrom litellm.litellm_core_utils import get_llm_provider_logic@@ -282,10 +284,16 @@ def test_model_info_lookup_unknown_model_returns_404(client, auth_as, monkeypatcassert "is not in the model cost map" in response.text-def test_model_info_lookup_returns_404_when_typed_info_has_no_cost_map_entry(client, auth_as, monkeypatch):+def test_model_info_lookup_returns_404_when_typed_info_has_no_cost_map_entry(+ client, auth_as, monkeypatch, local_model_cost_map+):"""``get_model_info`` synthesizes info for huggingface fallbacks absent from ``model_cost``;with no raw entry the route must 404 rather than answer 200 with typed fields only."""monkeypatch.setattr(proxy_server, "llm_router", None)+ respx.get("https://huggingface.co/not-in-map-org/not-in-map-model/raw/main/config.json").mock(+ return_value=httpx.Response(404)+ )with auth_as():response = client.get("/utils/model_info", params={"model": "huggingface/not-in-map-org/not-in-map-model"})assert response.status_code == 404, response.textdiff --git a/tests/test_litellm/proxy/proxy_server/test_spend_counters.py b/tests/unit/proxy/proxy_server/test_spend_counters.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_spend_counters.pyrename to tests/unit/proxy/proxy_server/test_spend_counters.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py b/tests/unit/proxy/proxy_server/test_streaming_helpers.pysimilarity index 100%rename from tests/test_litellm/proxy/proxy_server/test_streaming_helpers.pyrename to tests/unit/proxy/proxy_server/test_streaming_helpers.pydiff --git a/tests/test_litellm/proxy/proxy_server/test_team_model_name_translation.py b/tests/unit/proxy/proxy_server/test_team_model_name_translation.pysimilarity index 99%rename from tests/test_litellm/proxy/proxy_server/test_team_model_name_translation.pyrename to tests/unit/proxy/proxy_server/test_team_model_name_translation.pyindex baa032f75e6..b848c4f1976 100644--- a/tests/test_litellm/proxy/proxy_server/test_team_model_name_translation.py+++ b/tests/unit/proxy/proxy_server/test_team_model_name_translation.py@@ -1,6 +1,6 @@"""Coverage for team-scoped model-name translation in /model/info responses.-These live in tests/test_litellm/proxy/proxy_server/ (not the top-level+These live in tests/unit/proxy/proxy_server/ (not the top-leveltest_proxy_server.py) because the CI coverage job collects this directory.They exercise the read-path fix for issue #28382: `/v1`, `/v2`, and`/model/info` must surface `model_info.team_public_model_name` for team-scoped