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 utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006)
devin-ai-integration[bot]25109a523bba
diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.ymlindex 4d5b9074f03..e8483771569 100644--- a/.github/workflows/test-unit.yml+++ b/.github/workflows/test-unit.yml@@ -140,42 +140,46 @@ jobs:- shard: proxy-endpointsartifact-name: proxy-endpointstest-path: >-- tests/test_litellm/proxy/analytics_endpoints+ tests/unit/proxy/analytics_endpointstests/unit/proxy/management_endpoints- tests/test_litellm/proxy/list_api- tests/test_litellm/proxy/memory+ tests/unit/proxy/list_api+ tests/unit/proxy/memorytests/unit/proxy/guardrailstests/unit/proxy/management_helpers--ignore=tests/unit/proxy/management_endpoints/test_jwt_key_mapping.py--ignore=tests/unit/proxy/management_endpoints/test_key_generate_prisma.py--ignore=tests/unit/proxy/management_endpoints/test_roi_calculator_endpoints.py--ignore=tests/unit/proxy/management_helpers/test_audit_logs_proxy.py- tests/test_litellm/proxy/anthropic_endpoints- tests/test_litellm/proxy/google_endpoints- tests/test_litellm/proxy/openai_files_endpoint- tests/test_litellm/proxy/batches_endpoints- tests/test_litellm/proxy/container_endpoints- tests/test_litellm/proxy/fine_tuning_endpoints- tests/test_litellm/proxy/vector_store_files_endpoints- tests/test_litellm/proxy/video_endpoints- tests/test_litellm/proxy/response_api_endpoints- tests/test_litellm/proxy/image_endpoints- tests/test_litellm/proxy/ocr_endpoints- tests/test_litellm/proxy/vector_store_endpoints- tests/test_litellm/proxy/agent_endpoints- tests/test_litellm/proxy/a2a- tests/test_litellm/proxy/credential_endpoints- tests/test_litellm/proxy/discovery_endpoints- tests/test_litellm/proxy/health_endpoints- tests/test_litellm/proxy/shutdown- tests/test_litellm/proxy/public_endpoints- tests/test_litellm/proxy/prompts- tests/test_litellm/proxy/rag_endpoints- tests/test_litellm/proxy/rerank_endpoints- tests/test_litellm/proxy/realtime_endpoints- tests/test_litellm/proxy/ui_crud_endpoints- tests/test_litellm/proxy/config_resolvers- tests/test_litellm/proxy/utils+ --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+ tests/unit/proxy/anthropic_endpoints+ tests/unit/proxy/google_endpoints+ tests/unit/proxy/openai_files_endpoint+ tests/unit/proxy/batches_endpoints+ tests/unit/proxy/container_endpoints+ tests/unit/proxy/fine_tuning_endpoints+ tests/unit/proxy/vector_store_files_endpoints+ tests/unit/proxy/video_endpoints+ tests/unit/proxy/response_api_endpoints+ tests/unit/proxy/image_endpoints+ tests/unit/proxy/ocr_endpoints+ tests/unit/proxy/vector_store_endpoints+ tests/unit/proxy/agent_endpoints+ tests/unit/proxy/a2a+ tests/unit/proxy/credential_endpoints+ tests/unit/proxy/discovery_endpoints+ tests/unit/proxy/health_endpoints+ tests/unit/proxy/shutdown+ tests/unit/proxy/public_endpoints+ tests/unit/proxy/prompts+ tests/unit/proxy/rag_endpoints+ tests/unit/proxy/rerank_endpoints+ tests/unit/proxy/realtime_endpoints+ tests/unit/proxy/ui_crud_endpoints+ tests/unit/proxy/config_resolvers+ tests/unit/proxy/utilsworkers: 4reruns: 2timeout-minutes: 20diff --git a/Makefile b/Makefileindex b6ce1ebabaf..ed1f9e3e1e5 100644--- a/Makefile+++ b/Makefile@@ -327,7 +327,7 @@ test-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=20test-unit-proxy-misc: install-test-deps- $(UV_RUN) pytest tests/test_litellm/proxy/_experimental tests/test_litellm/proxy/agent_endpoints tests/test_litellm/proxy/anthropic_endpoints tests/test_litellm/proxy/common_utils tests/test_litellm/proxy/discovery_endpoints tests/test_litellm/proxy/experimental tests/test_litellm/proxy/google_endpoints tests/test_litellm/proxy/health_endpoints tests/test_litellm/proxy/image_endpoints tests/test_litellm/proxy/middleware tests/test_litellm/proxy/openai_files_endpoint tests/test_litellm/proxy/pass_through_endpoints tests/test_litellm/proxy/prompts tests/test_litellm/proxy/public_endpoints tests/test_litellm/proxy/response_api_endpoints tests/test_litellm/proxy/shutdown tests/test_litellm/proxy/spend_tracking tests/test_litellm/proxy/ui_crud_endpoints tests/test_litellm/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 --tb=short -vv -n 4 --durations=20+ $(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=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_cache_activity.py b/tests/proxy_behavior/spend/test_cache_activity.pyindex f4a7e8eb2b2..528764fbf45 100644--- a/tests/proxy_behavior/spend/test_cache_activity.py+++ b/tests/proxy_behavior/spend/test_cache_activity.py@@ -2,7 +2,7 @@Behavior tests for the cache analytics queries against a real Postgres. The info-routeexclusion and the Unknown grouping live in SQL, so these tests are the ones that exercisethem; the endpoint wiring is unit-tested in-tests/test_litellm/proxy/analytics_endpoints/test_analytics_endpoints.py.+tests/unit/proxy/analytics_endpoints/test_analytics_endpoints.py."""import jsondiff --git a/tests/test_litellm/proxy/a2a/__init__.py b/tests/unit/proxy/a2a/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/a2a/__init__.pyrename to tests/unit/proxy/a2a/__init__.pydiff --git a/tests/test_litellm/proxy/a2a/test_agent_card.py b/tests/unit/proxy/a2a/test_agent_card.pysimilarity index 100%rename from tests/test_litellm/proxy/a2a/test_agent_card.pyrename to tests/unit/proxy/a2a/test_agent_card.pydiff --git a/tests/test_litellm/proxy/a2a/test_discovery.py b/tests/unit/proxy/a2a/test_discovery.pysimilarity index 100%rename from tests/test_litellm/proxy/a2a/test_discovery.pyrename to tests/unit/proxy/a2a/test_discovery.pydiff --git a/tests/test_litellm/proxy/a2a/test_version_convert.py b/tests/unit/proxy/a2a/test_version_convert.pysimilarity index 100%rename from tests/test_litellm/proxy/a2a/test_version_convert.pyrename to tests/unit/proxy/a2a/test_version_convert.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/__init__.py b/tests/unit/proxy/agent_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/__init__.pyrename to tests/unit/proxy/agent_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/auth/__init__.py b/tests/unit/proxy/agent_endpoints/auth/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/auth/__init__.pyrename to tests/unit/proxy/agent_endpoints/auth/__init__.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/auth/test_agent_access_groups.py b/tests/unit/proxy/agent_endpoints/auth/test_agent_access_groups.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/auth/test_agent_access_groups.pyrename to tests/unit/proxy/agent_endpoints/auth/test_agent_access_groups.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/auth/test_agent_caller.py b/tests/unit/proxy/agent_endpoints/auth/test_agent_caller.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/auth/test_agent_caller.pyrename to tests/unit/proxy/agent_endpoints/auth/test_agent_caller.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/auth/test_agent_permission_handler.py b/tests/unit/proxy/agent_endpoints/auth/test_agent_permission_handler.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/auth/test_agent_permission_handler.pyrename to tests/unit/proxy/agent_endpoints/auth/test_agent_permission_handler.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/auth/test_managed_authorization.py b/tests/unit/proxy/agent_endpoints/auth/test_managed_authorization.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/auth/test_managed_authorization.pyrename to tests/unit/proxy/agent_endpoints/auth/test_managed_authorization.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_a2a_endpoints.py b/tests/unit/proxy/agent_endpoints/test_a2a_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_a2a_endpoints.pyrename to tests/unit/proxy/agent_endpoints/test_a2a_endpoints.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_a2a_version_e2e.py b/tests/unit/proxy/agent_endpoints/test_a2a_version_e2e.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_a2a_version_e2e.pyrename to tests/unit/proxy/agent_endpoints/test_a2a_version_e2e.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_agent_header_isolation.py b/tests/unit/proxy/agent_endpoints/test_agent_header_isolation.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_agent_header_isolation.pyrename to tests/unit/proxy/agent_endpoints/test_agent_header_isolation.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_agent_headers.py b/tests/unit/proxy/agent_endpoints/test_agent_headers.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_agent_headers.pyrename to tests/unit/proxy/agent_endpoints/test_agent_headers.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_agent_rbac.py b/tests/unit/proxy/agent_endpoints/test_agent_rbac.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_agent_rbac.pyrename to tests/unit/proxy/agent_endpoints/test_agent_rbac.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_agent_registry.py b/tests/unit/proxy/agent_endpoints/test_agent_registry.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_agent_registry.pyrename to tests/unit/proxy/agent_endpoints/test_agent_registry.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_agent_search.py b/tests/unit/proxy/agent_endpoints/test_agent_search.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_agent_search.pyrename to tests/unit/proxy/agent_endpoints/test_agent_search.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_databricks_oauth.py b/tests/unit/proxy/agent_endpoints/test_databricks_oauth.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_databricks_oauth.pyrename to tests/unit/proxy/agent_endpoints/test_databricks_oauth.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_endpoints.py b/tests/unit/proxy/agent_endpoints/test_endpoints.pysimilarity index 99%rename from tests/test_litellm/proxy/agent_endpoints/test_endpoints.pyrename to tests/unit/proxy/agent_endpoints/test_endpoints.pyindex 2cf81892db7..81b6c09ca12 100644--- a/tests/test_litellm/proxy/agent_endpoints/test_endpoints.py+++ b/tests/unit/proxy/agent_endpoints/test_endpoints.py@@ -150,7 +150,7 @@ class _AgentPersistence:return self.rowasync def update(self, *, data: Mapping[str, object], **kwargs: object) -> LiteLLM_AgentsTable:- from tests.test_litellm.proxy.agent_endpoints.test_agent_registry import _stored_agent_row+ from tests.unit.proxy.agent_endpoints.test_agent_registry import _stored_agent_rowself.row = _stored_agent_row({**self.row.model_dump(), **data})return self.row@@ -163,7 +163,7 @@ def test_identity_settings_edit_preserves_runtime_configuration_on_readback() -> None:from litellm.proxy import proxy_serverfrom litellm.proxy.agent_endpoints.agent_registry import AgentRegistry- from tests.test_litellm.proxy.agent_endpoints.test_agent_registry import _stored_agent_row+ from tests.unit.proxy.agent_endpoints.test_agent_registry import _stored_agent_rowruntime: Final = {"agent_card_params": {} if cardless else _sample_agent_card_params(),@@ -1330,7 +1330,7 @@ def test_identity_providers_honor_issuer_specific_audiences_and_global_fallback(def test_mode_only_edit_requires_the_existing_identity_sso_tenant(monkeypatch: pytest.MonkeyPatch, change: PatchAgentRequest) -> None:- from tests.test_litellm.proxy.agent_endpoints.test_managed_identity import BINDING, TENANT, managed_agent+ from tests.unit.proxy.agent_endpoints.test_managed_identity import BINDING, TENANT, managed_agentmonkeypatch.setattr(agent_endpoints, "_trusted_agent_issuers", lambda: (BINDING.issuer,))monkeypatch.delenv("MICROSOFT_TENANT", raising=False)@@ -1342,7 +1342,7 @@ def test_mode_only_edit_requires_the_existing_identity_sso_tenant(def test_identity_only_edit_preserves_delegated_mode_validation(monkeypatch: pytest.MonkeyPatch) -> None:- from tests.test_litellm.proxy.agent_endpoints.test_managed_identity import BINDING, managed_agent+ from tests.unit.proxy.agent_endpoints.test_managed_identity import BINDING, managed_agentmonkeypatch.setattr(agent_endpoints, "_trusted_agent_issuers", lambda: (BINDING.issuer,))monkeypatch.delenv("MICROSOFT_TENANT", raising=False)@@ -1637,7 +1637,7 @@ def test_agent_detail_cache_miss_preserves_admin_identity_visibility(role, monkedef test_invalid_identity_and_untrusted_tenant_cannot_be_registered(monkeypatch: pytest.MonkeyPatch, trusted: bool) -> None:- from tests.test_litellm.proxy.agent_endpoints.test_managed_identity import BINDING+ from tests.unit.proxy.agent_endpoints.test_managed_identity import BINDINGconfiguration: Final = BINDING.model_dump(exclude={"agent_id", "issuer", "revision", "last_authenticated_at", "active"}diff --git a/tests/test_litellm/proxy/agent_endpoints/test_identity.py b/tests/unit/proxy/agent_endpoints/test_identity.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_identity.pyrename to tests/unit/proxy/agent_endpoints/test_identity.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_identity_store.py b/tests/unit/proxy/agent_endpoints/test_identity_store.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_identity_store.pyrename to tests/unit/proxy/agent_endpoints/test_identity_store.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_kill_switch.py b/tests/unit/proxy/agent_endpoints/test_kill_switch.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_kill_switch.pyrename to tests/unit/proxy/agent_endpoints/test_kill_switch.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_managed_identity.py b/tests/unit/proxy/agent_endpoints/test_managed_identity.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_managed_identity.pyrename to tests/unit/proxy/agent_endpoints/test_managed_identity.pydiff --git a/tests/test_litellm/proxy/agent_endpoints/test_model_list_helpers.py b/tests/unit/proxy/agent_endpoints/test_model_list_helpers.pysimilarity index 100%rename from tests/test_litellm/proxy/agent_endpoints/test_model_list_helpers.pyrename to tests/unit/proxy/agent_endpoints/test_model_list_helpers.pydiff --git a/tests/test_litellm/proxy/analytics_endpoints/__init__.py b/tests/unit/proxy/analytics_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/analytics_endpoints/__init__.pyrename to tests/unit/proxy/analytics_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/analytics_endpoints/test_analytics_endpoints.py b/tests/unit/proxy/analytics_endpoints/test_analytics_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/analytics_endpoints/test_analytics_endpoints.pyrename to tests/unit/proxy/analytics_endpoints/test_analytics_endpoints.pydiff --git a/tests/test_litellm/proxy/anthropic_endpoints/__init__.py b/tests/unit/proxy/anthropic_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/anthropic_endpoints/__init__.pyrename to tests/unit/proxy/anthropic_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/anthropic_endpoints/test_claude_code_marketplace.py b/tests/unit/proxy/anthropic_endpoints/test_claude_code_marketplace.pysimilarity index 100%rename from tests/test_litellm/proxy/anthropic_endpoints/test_claude_code_marketplace.pyrename to tests/unit/proxy/anthropic_endpoints/test_claude_code_marketplace.pydiff --git a/tests/test_litellm/proxy/anthropic_endpoints/test_claude_code_skill_access.py b/tests/unit/proxy/anthropic_endpoints/test_claude_code_skill_access.pysimilarity index 100%rename from tests/test_litellm/proxy/anthropic_endpoints/test_claude_code_skill_access.pyrename to tests/unit/proxy/anthropic_endpoints/test_claude_code_skill_access.pydiff --git a/tests/test_litellm/proxy/anthropic_endpoints/test_endpoints.py b/tests/unit/proxy/anthropic_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/anthropic_endpoints/test_endpoints.pyrename to tests/unit/proxy/anthropic_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/anthropic_endpoints/test_gateway_endpoints.py b/tests/unit/proxy/anthropic_endpoints/test_gateway_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/anthropic_endpoints/test_gateway_endpoints.pyrename to tests/unit/proxy/anthropic_endpoints/test_gateway_endpoints.pydiff --git a/tests/test_litellm/proxy/anthropic_endpoints/test_skills_endpoints.py b/tests/unit/proxy/anthropic_endpoints/test_skills_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/anthropic_endpoints/test_skills_endpoints.pyrename to tests/unit/proxy/anthropic_endpoints/test_skills_endpoints.pydiff --git a/tests/test_litellm/proxy/anthropic_endpoints/test_streaming_model_restamp.py b/tests/unit/proxy/anthropic_endpoints/test_streaming_model_restamp.pysimilarity index 100%rename from tests/test_litellm/proxy/anthropic_endpoints/test_streaming_model_restamp.pyrename to tests/unit/proxy/anthropic_endpoints/test_streaming_model_restamp.pydiff --git a/tests/test_litellm/proxy/batches_endpoints/__init__.py b/tests/unit/proxy/batches_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/batches_endpoints/__init__.pyrename to tests/unit/proxy/batches_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/batches_endpoints/test_endpoints.py b/tests/unit/proxy/batches_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/batches_endpoints/test_endpoints.pyrename to tests/unit/proxy/batches_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/batches_endpoints/test_litellm_executed_batches.py b/tests/unit/proxy/batches_endpoints/test_litellm_executed_batches.pysimilarity index 100%rename from tests/test_litellm/proxy/batches_endpoints/test_litellm_executed_batches.pyrename to tests/unit/proxy/batches_endpoints/test_litellm_executed_batches.pydiff --git a/tests/test_litellm/proxy/container_endpoints/__init__.py b/tests/unit/proxy/config_resolvers/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/container_endpoints/__init__.pyrename to tests/unit/proxy/config_resolvers/__init__.pydiff --git a/tests/test_litellm/proxy/config_resolvers/test_config_resolvers.py b/tests/unit/proxy/config_resolvers/test_config_resolvers.pysimilarity index 100%rename from tests/test_litellm/proxy/config_resolvers/test_config_resolvers.pyrename to tests/unit/proxy/config_resolvers/test_config_resolvers.pydiff --git a/tests/test_litellm/proxy/config_resolvers/test_settings_rules.py b/tests/unit/proxy/config_resolvers/test_settings_rules.pysimilarity index 100%rename from tests/test_litellm/proxy/config_resolvers/test_settings_rules.pyrename to tests/unit/proxy/config_resolvers/test_settings_rules.pydiff --git a/tests/test_litellm/proxy/config_resolvers/test_settings_store.py b/tests/unit/proxy/config_resolvers/test_settings_store.pysimilarity index 100%rename from tests/test_litellm/proxy/config_resolvers/test_settings_store.pyrename to tests/unit/proxy/config_resolvers/test_settings_store.pydiff --git a/tests/unit/proxy/conftest.py b/tests/unit/proxy/conftest.pyindex 1d0a7475db6..0e8acf3b905 100644--- a/tests/unit/proxy/conftest.py+++ b/tests/unit/proxy/conftest.py@@ -8,6 +8,7 @@ from collections.abc import Iteratorfrom typing import Dictimport pytest+from prisma.errors import ClientNotConnectedErrorimport litellm@@ -15,6 +16,24 @@ import litellm.proxy.proxy_serverfrom tests.unit.litellm_core_utils.fake_secret_vault import FakeSecretVault+class StubClientNotConnectedError(ClientNotConnectedError):+ pass+++class DisconnectedPrisma:+ def is_connected(self) -> bool:+ return False++ @property+ def _engine(self) -> None:+ raise StubClientNotConnectedError()+++def disconnected_prisma() -> DisconnectedPrisma:+ return DisconnectedPrisma()++# Top-level assignments of these types are the ones importlib.reload(litellm)# would have effectively reset. We snapshot them at conftest import time and# deep-copy the snapshot back before every test.diff --git a/tests/test_litellm/proxy/fine_tuning_endpoints/__init__.py b/tests/unit/proxy/container_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/fine_tuning_endpoints/__init__.pyrename to tests/unit/proxy/container_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/container_endpoints/test_endpoints.py b/tests/unit/proxy/container_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/container_endpoints/test_endpoints.pyrename to tests/unit/proxy/container_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/container_endpoints/test_handler_factory.py b/tests/unit/proxy/container_endpoints/test_handler_factory.pysimilarity index 100%rename from tests/test_litellm/proxy/container_endpoints/test_handler_factory.pyrename to tests/unit/proxy/container_endpoints/test_handler_factory.pydiff --git a/tests/test_litellm/proxy/google_endpoints/__init__.py b/tests/unit/proxy/credential_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/google_endpoints/__init__.pyrename to tests/unit/proxy/credential_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/credential_endpoints/test_endpoints.py b/tests/unit/proxy/credential_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/credential_endpoints/test_endpoints.pyrename to tests/unit/proxy/credential_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/memory/__init__.py b/tests/unit/proxy/discovery_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/memory/__init__.pyrename to tests/unit/proxy/discovery_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/discovery_endpoints/test_agent_skills_archive.py b/tests/unit/proxy/discovery_endpoints/test_agent_skills_archive.pysimilarity index 100%rename from tests/test_litellm/proxy/discovery_endpoints/test_agent_skills_archive.pyrename to tests/unit/proxy/discovery_endpoints/test_agent_skills_archive.pydiff --git a/tests/test_litellm/proxy/discovery_endpoints/test_agent_skills_endpoints.py b/tests/unit/proxy/discovery_endpoints/test_agent_skills_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/discovery_endpoints/test_agent_skills_endpoints.pyrename to tests/unit/proxy/discovery_endpoints/test_agent_skills_endpoints.pydiff --git a/tests/test_litellm/proxy/discovery_endpoints/test_ui_discovery_endpoints.py b/tests/unit/proxy/discovery_endpoints/test_ui_discovery_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/discovery_endpoints/test_ui_discovery_endpoints.pyrename to tests/unit/proxy/discovery_endpoints/test_ui_discovery_endpoints.pydiff --git a/tests/test_litellm/proxy/ocr_endpoints/__init__.py b/tests/unit/proxy/fine_tuning_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/ocr_endpoints/__init__.pyrename to tests/unit/proxy/fine_tuning_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/fine_tuning_endpoints/test_endpoints.py b/tests/unit/proxy/fine_tuning_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/fine_tuning_endpoints/test_endpoints.pyrename to tests/unit/proxy/fine_tuning_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/google_endpoints/test_endpoints.py b/tests/unit/proxy/google_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/google_endpoints/test_endpoints.pyrename to tests/unit/proxy/google_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/google_endpoints/test_google_api_endpoints.py b/tests/unit/proxy/google_endpoints/test_google_api_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/google_endpoints/test_google_api_endpoints.pyrename to tests/unit/proxy/google_endpoints/test_google_api_endpoints.pydiff --git a/tests/test_litellm/proxy/google_endpoints/test_interactions_agent_param.py b/tests/unit/proxy/google_endpoints/test_interactions_agent_param.pysimilarity index 100%rename from tests/test_litellm/proxy/google_endpoints/test_interactions_agent_param.pyrename to tests/unit/proxy/google_endpoints/test_interactions_agent_param.pydiff --git a/tests/test_litellm/proxy/google_endpoints/test_managed_agents_model_param.py b/tests/unit/proxy/google_endpoints/test_managed_agents_model_param.pysimilarity index 100%rename from tests/test_litellm/proxy/google_endpoints/test_managed_agents_model_param.pyrename to tests/unit/proxy/google_endpoints/test_managed_agents_model_param.pydiff --git a/tests/test_litellm/proxy/rag_endpoints/__init__.py b/tests/unit/proxy/health_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/rag_endpoints/__init__.pyrename to tests/unit/proxy/health_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/health_endpoints/test_graceful_shutdown_endpoints.py b/tests/unit/proxy/health_endpoints/test_graceful_shutdown_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/health_endpoints/test_graceful_shutdown_endpoints.pyrename to tests/unit/proxy/health_endpoints/test_graceful_shutdown_endpoints.pydiff --git a/tests/test_litellm/proxy/health_endpoints/test_health_endpoints.py b/tests/unit/proxy/health_endpoints/test_health_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/health_endpoints/test_health_endpoints.pyrename to tests/unit/proxy/health_endpoints/test_health_endpoints.pydiff --git a/tests/test_litellm/proxy/image_endpoints/__init__.py b/tests/unit/proxy/image_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/image_endpoints/__init__.pyrename to tests/unit/proxy/image_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/image_endpoints/test_azure_routes.py b/tests/unit/proxy/image_endpoints/test_azure_routes.pysimilarity index 100%rename from tests/test_litellm/proxy/image_endpoints/test_azure_routes.pyrename to tests/unit/proxy/image_endpoints/test_azure_routes.pydiff --git a/tests/test_litellm/proxy/image_endpoints/test_endpoints.py b/tests/unit/proxy/image_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/image_endpoints/test_endpoints.pyrename to tests/unit/proxy/image_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/rerank_endpoints/__init__.py b/tests/unit/proxy/list_api/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/rerank_endpoints/__init__.pyrename to tests/unit/proxy/list_api/__init__.pydiff --git a/tests/test_litellm/proxy/list_api/test_common.py b/tests/unit/proxy/list_api/test_common.pysimilarity index 100%rename from tests/test_litellm/proxy/list_api/test_common.pyrename to tests/unit/proxy/list_api/test_common.pydiff --git a/tests/test_litellm/proxy/list_api/test_in_memory.py b/tests/unit/proxy/list_api/test_in_memory.pysimilarity index 100%rename from tests/test_litellm/proxy/list_api/test_in_memory.pyrename to tests/unit/proxy/list_api/test_in_memory.pydiff --git a/tests/test_litellm/proxy/list_api/test_list_framework.py b/tests/unit/proxy/list_api/test_list_framework.pysimilarity index 100%rename from tests/test_litellm/proxy/list_api/test_list_framework.pyrename to tests/unit/proxy/list_api/test_list_framework.pydiff --git a/tests/test_litellm/proxy/response_api_endpoints/__init__.py b/tests/unit/proxy/memory/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/response_api_endpoints/__init__.pyrename to tests/unit/proxy/memory/__init__.pydiff --git a/tests/test_litellm/proxy/memory/test_memory_endpoints.py b/tests/unit/proxy/memory/test_memory_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/memory/test_memory_endpoints.pyrename to tests/unit/proxy/memory/test_memory_endpoints.pydiff --git a/tests/test_litellm/proxy/utils/__init__.py b/tests/unit/proxy/ocr_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/__init__.pyrename to tests/unit/proxy/ocr_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/ocr_endpoints/test_endpoints.py b/tests/unit/proxy/ocr_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/ocr_endpoints/test_endpoints.pyrename to tests/unit/proxy/ocr_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/utils/helpers/__init__.py b/tests/unit/proxy/openai_files_endpoint/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/__init__.pyrename to tests/unit/proxy/openai_files_endpoint/__init__.pydiff --git a/tests/test_litellm/proxy/openai_files_endpoint/test_batch_guardrails.py b/tests/unit/proxy/openai_files_endpoint/test_batch_guardrails.pysimilarity index 100%rename from tests/test_litellm/proxy/openai_files_endpoint/test_batch_guardrails.pyrename to tests/unit/proxy/openai_files_endpoint/test_batch_guardrails.pydiff --git a/tests/test_litellm/proxy/openai_files_endpoint/test_files_batch_file_validation.py b/tests/unit/proxy/openai_files_endpoint/test_files_batch_file_validation.pysimilarity index 100%rename from tests/test_litellm/proxy/openai_files_endpoint/test_files_batch_file_validation.pyrename to tests/unit/proxy/openai_files_endpoint/test_files_batch_file_validation.pydiff --git a/tests/test_litellm/proxy/openai_files_endpoint/test_files_common_utils.py b/tests/unit/proxy/openai_files_endpoint/test_files_common_utils.pysimilarity index 100%rename from tests/test_litellm/proxy/openai_files_endpoint/test_files_common_utils.pyrename to tests/unit/proxy/openai_files_endpoint/test_files_common_utils.pydiff --git a/tests/test_litellm/proxy/openai_files_endpoint/test_files_endpoint.py b/tests/unit/proxy/openai_files_endpoint/test_files_endpoint.pysimilarity index 100%rename from tests/test_litellm/proxy/openai_files_endpoint/test_files_endpoint.pyrename to tests/unit/proxy/openai_files_endpoint/test_files_endpoint.pydiff --git a/tests/test_litellm/proxy/openai_files_endpoint/test_general_upload_validation.py b/tests/unit/proxy/openai_files_endpoint/test_general_upload_validation.pysimilarity index 100%rename from tests/test_litellm/proxy/openai_files_endpoint/test_general_upload_validation.pyrename to tests/unit/proxy/openai_files_endpoint/test_general_upload_validation.pydiff --git a/tests/test_litellm/proxy/openai_files_endpoint/test_storage_backend_service.py b/tests/unit/proxy/openai_files_endpoint/test_storage_backend_service.pysimilarity index 100%rename from tests/test_litellm/proxy/openai_files_endpoint/test_storage_backend_service.pyrename to tests/unit/proxy/openai_files_endpoint/test_storage_backend_service.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/__init__.py b/tests/unit/proxy/prompts/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/__init__.pyrename to tests/unit/proxy/prompts/__init__.pydiff --git a/tests/test_litellm/proxy/prompts/test_prompt_endpoints.py b/tests/unit/proxy/prompts/test_prompt_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/prompts/test_prompt_endpoints.pyrename to tests/unit/proxy/prompts/test_prompt_endpoints.pydiff --git a/tests/test_litellm/proxy/prompts/test_prompt_endpoints_crud.py b/tests/unit/proxy/prompts/test_prompt_endpoints_crud.pysimilarity index 100%rename from tests/test_litellm/proxy/prompts/test_prompt_endpoints_crud.pyrename to tests/unit/proxy/prompts/test_prompt_endpoints_crud.pydiff --git a/tests/test_litellm/proxy/prompts/test_prompt_environment.py b/tests/unit/proxy/prompts/test_prompt_environment.pysimilarity index 100%rename from tests/test_litellm/proxy/prompts/test_prompt_environment.pyrename to tests/unit/proxy/prompts/test_prompt_environment.pydiff --git a/tests/test_litellm/proxy/prompts/test_prompt_registry.py b/tests/unit/proxy/prompts/test_prompt_registry.pysimilarity index 100%rename from tests/test_litellm/proxy/prompts/test_prompt_registry.pyrename to tests/unit/proxy/prompts/test_prompt_registry.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/__init__.py b/tests/unit/proxy/public_endpoints/public_v1/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/__init__.pyrename to tests/unit/proxy/public_endpoints/public_v1/__init__.pydiff --git a/tests/test_litellm/proxy/public_endpoints/public_v1/test_model_hub.py b/tests/unit/proxy/public_endpoints/public_v1/test_model_hub.pysimilarity index 100%rename from tests/test_litellm/proxy/public_endpoints/public_v1/test_model_hub.pyrename to tests/unit/proxy/public_endpoints/public_v1/test_model_hub.pydiff --git a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py b/tests/unit/proxy/public_endpoints/test_public_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/public_endpoints/test_public_endpoints.pyrename to tests/unit/proxy/public_endpoints/test_public_endpoints.pydiff --git a/tests/test_litellm/proxy/vector_store_files_endpoints/__init__.py b/tests/unit/proxy/rag_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/vector_store_files_endpoints/__init__.pyrename to tests/unit/proxy/rag_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/rag_endpoints/test_rag_endpoints.py b/tests/unit/proxy/rag_endpoints/test_rag_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/rag_endpoints/test_rag_endpoints.pyrename to tests/unit/proxy/rag_endpoints/test_rag_endpoints.pydiff --git a/tests/test_litellm/proxy/rag_endpoints/test_upload_security.py b/tests/unit/proxy/rag_endpoints/test_upload_security.pysimilarity index 100%rename from tests/test_litellm/proxy/rag_endpoints/test_upload_security.pyrename to tests/unit/proxy/rag_endpoints/test_upload_security.pydiff --git a/tests/test_litellm/proxy/video_endpoints/__init__.py b/tests/unit/proxy/realtime_endpoints/__init__.pysimilarity index 100%rename from tests/test_litellm/proxy/video_endpoints/__init__.pyrename to tests/unit/proxy/realtime_endpoints/__init__.pydiff --git a/tests/test_litellm/proxy/realtime_endpoints/test_realtime_webrtc_endpoints.py b/tests/unit/proxy/realtime_endpoints/test_realtime_webrtc_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/realtime_endpoints/test_realtime_webrtc_endpoints.pyrename to tests/unit/proxy/realtime_endpoints/test_realtime_webrtc_endpoints.pydiff --git a/tests/unit/proxy/rerank_endpoints/__init__.py b/tests/unit/proxy/rerank_endpoints/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/rerank_endpoints/test_endpoints.py b/tests/unit/proxy/rerank_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/rerank_endpoints/test_endpoints.pyrename to tests/unit/proxy/rerank_endpoints/test_endpoints.pydiff --git a/tests/unit/proxy/response_api_endpoints/__init__.py b/tests/unit/proxy/response_api_endpoints/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/response_api_endpoints/test_endpoints.py b/tests/unit/proxy/response_api_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/response_api_endpoints/test_endpoints.pyrename to tests/unit/proxy/response_api_endpoints/test_endpoints.pydiff --git a/tests/unit/proxy/shutdown/__init__.py b/tests/unit/proxy/shutdown/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/shutdown/test_graceful_shutdown_manager.py b/tests/unit/proxy/shutdown/test_graceful_shutdown_manager.pysimilarity index 100%rename from tests/test_litellm/proxy/shutdown/test_graceful_shutdown_manager.pyrename to tests/unit/proxy/shutdown/test_graceful_shutdown_manager.pydiff --git a/tests/test_litellm/proxy/shutdown/test_scheduled_jobs.py b/tests/unit/proxy/shutdown/test_scheduled_jobs.pysimilarity index 100%rename from tests/test_litellm/proxy/shutdown/test_scheduled_jobs.pyrename to tests/unit/proxy/shutdown/test_scheduled_jobs.pydiff --git a/tests/unit/proxy/ui_crud_endpoints/__init__.py b/tests/unit/proxy/ui_crud_endpoints/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/ui_crud_endpoints/test_latest_release_endpoints.py b/tests/unit/proxy/ui_crud_endpoints/test_latest_release_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/ui_crud_endpoints/test_latest_release_endpoints.pyrename to tests/unit/proxy/ui_crud_endpoints/test_latest_release_endpoints.pydiff --git a/tests/test_litellm/proxy/ui_crud_endpoints/test_proxy_setting_endpoints.py b/tests/unit/proxy/ui_crud_endpoints/test_proxy_setting_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/ui_crud_endpoints/test_proxy_setting_endpoints.pyrename to tests/unit/proxy/ui_crud_endpoints/test_proxy_setting_endpoints.pydiff --git a/tests/test_litellm/proxy/ui_crud_endpoints/test_user_banner_endpoints.py b/tests/unit/proxy/ui_crud_endpoints/test_user_banner_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/ui_crud_endpoints/test_user_banner_endpoints.pyrename to tests/unit/proxy/ui_crud_endpoints/test_user_banner_endpoints.pydiff --git a/tests/unit/proxy/utils/__init__.py b/tests/unit/proxy/utils/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/unit/proxy/utils/helpers/__init__.py b/tests/unit/proxy/utils/helpers/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/utils/helpers/test_error_helpers.py b/tests/unit/proxy/utils/helpers/test_error_helpers.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_error_helpers.pyrename to tests/unit/proxy/utils/helpers/test_error_helpers.pydiff --git a/tests/test_litellm/proxy/utils/helpers/test_guardrail_merge.py b/tests/unit/proxy/utils/helpers/test_guardrail_merge.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_guardrail_merge.pyrename to tests/unit/proxy/utils/helpers/test_guardrail_merge.pydiff --git a/tests/test_litellm/proxy/utils/helpers/test_misc_helpers.py b/tests/unit/proxy/utils/helpers/test_misc_helpers.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_misc_helpers.pyrename to tests/unit/proxy/utils/helpers/test_misc_helpers.pydiff --git a/tests/test_litellm/proxy/utils/helpers/test_model_access.py b/tests/unit/proxy/utils/helpers/test_model_access.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_model_access.pyrename to tests/unit/proxy/utils/helpers/test_model_access.pydiff --git a/tests/test_litellm/proxy/utils/helpers/test_month_end_projection.py b/tests/unit/proxy/utils/helpers/test_month_end_projection.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_month_end_projection.pyrename to tests/unit/proxy/utils/helpers/test_month_end_projection.pydiff --git a/tests/test_litellm/proxy/utils/helpers/test_premium_user_check.py b/tests/unit/proxy/utils/helpers/test_premium_user_check.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_premium_user_check.pyrename to tests/unit/proxy/utils/helpers/test_premium_user_check.pydiff --git a/tests/test_litellm/proxy/utils/helpers/test_team_configs.py b/tests/unit/proxy/utils/helpers/test_team_configs.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_team_configs.pyrename to tests/unit/proxy/utils/helpers/test_team_configs.pydiff --git a/tests/test_litellm/proxy/utils/helpers/test_to_ns.py b/tests/unit/proxy/utils/helpers/test_to_ns.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_to_ns.pyrename to tests/unit/proxy/utils/helpers/test_to_ns.pydiff --git a/tests/test_litellm/proxy/utils/helpers/test_url_helpers.py b/tests/unit/proxy/utils/helpers/test_url_helpers.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/helpers/test_url_helpers.pyrename to tests/unit/proxy/utils/helpers/test_url_helpers.pydiff --git a/tests/unit/proxy/utils/prisma_and_spend/__init__.py b/tests/unit/proxy/utils/prisma_and_spend/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/_harness_smoke_test.py b/tests/unit/proxy/utils/prisma_and_spend/_harness_smoke_test.pysimilarity index 93%rename from tests/test_litellm/proxy/utils/prisma_and_spend/_harness_smoke_test.pyrename to tests/unit/proxy/utils/prisma_and_spend/_harness_smoke_test.pyindex 2243d46ae7f..dd4bd0f1f72 100644--- a/tests/test_litellm/proxy/utils/prisma_and_spend/_harness_smoke_test.py+++ b/tests/unit/proxy/utils/prisma_and_spend/_harness_smoke_test.py@@ -15,14 +15,14 @@ from litellm.proxy.utils import PrismaClientdef test_normalize_scrubs_volatile_keys() -> None:- from tests.test_litellm.proxy.utils.prisma_and_spend.conftest import normalize+ from tests.unit.proxy.utils.prisma_and_spend.conftest import normalizeout = normalize({"id": 1, "spend": 2.0, "team_id": "t1"})assert out == {"id": "<VOLATILE>", "spend": "<VOLATILE>", "team_id": "t1"}def test_normalize_recurses_into_lists() -> None:- from tests.test_litellm.proxy.utils.prisma_and_spend.conftest import normalize+ from tests.unit.proxy.utils.prisma_and_spend.conftest import normalizeout = normalize([{"id": "x"}, {"team_id": "t"}])assert out == [{"id": "<VOLATILE>"}, {"team_id": "t"}]diff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/conftest.py b/tests/unit/proxy/utils/prisma_and_spend/conftest.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/conftest.pyrename to tests/unit/proxy/utils/prisma_and_spend/conftest.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_cache_user_row.py b/tests/unit/proxy/utils/prisma_and_spend/test_cache_user_row.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_cache_user_row.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_cache_user_row.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_config_param_cache.py b/tests/unit/proxy/utils/prisma_and_spend/test_config_param_cache.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_config_param_cache.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_config_param_cache.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_password_helpers.py b/tests/unit/proxy/utils/prisma_and_spend/test_password_helpers.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_password_helpers.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_password_helpers.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_engine_watcher.py b/tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_engine_watcher.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_engine_watcher.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_engine_watcher.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_get_data.py b/tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_get_data.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_get_data.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_get_data.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_health.py b/tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_health.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_health.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_health.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_lifecycle.py b/tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_lifecycle.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_lifecycle.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_lifecycle.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_reconnect.py b/tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_reconnect.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_reconnect.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_reconnect.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_writes.py b/tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_writes.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_prisma_client_writes.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_writes.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_proxy_update_spend.py b/tests/unit/proxy/utils/prisma_and_spend/test_proxy_update_spend.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_proxy_update_spend.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_proxy_update_spend.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_send_email.py b/tests/unit/proxy/utils/prisma_and_spend/test_send_email.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_send_email.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_send_email.pydiff --git a/tests/test_litellm/proxy/utils/prisma_and_spend/test_spend_functions.py b/tests/unit/proxy/utils/prisma_and_spend/test_spend_functions.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/prisma_and_spend/test_spend_functions.pyrename to tests/unit/proxy/utils/prisma_and_spend/test_spend_functions.pydiff --git a/tests/unit/proxy/utils/proxy_logging/__init__.py b/tests/unit/proxy/utils/proxy_logging/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/utils/proxy_logging/_harness_smoke_test.py b/tests/unit/proxy/utils/proxy_logging/_harness_smoke_test.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/_harness_smoke_test.pyrename to tests/unit/proxy/utils/proxy_logging/_harness_smoke_test.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/conftest.py b/tests/unit/proxy/utils/proxy_logging/conftest.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/conftest.pyrename to tests/unit/proxy/utils/proxy_logging/conftest.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_alerting.py b/tests/unit/proxy/utils/proxy_logging/test_alerting.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_alerting.pyrename to tests/unit/proxy/utils/proxy_logging/test_alerting.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_callback_capabilities_class.py b/tests/unit/proxy/utils/proxy_logging/test_callback_capabilities_class.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_callback_capabilities_class.pyrename to tests/unit/proxy/utils/proxy_logging/test_callback_capabilities_class.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_callback_capabilities_dataclass.py b/tests/unit/proxy/utils/proxy_logging/test_callback_capabilities_dataclass.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_callback_capabilities_dataclass.pyrename to tests/unit/proxy/utils/proxy_logging/test_callback_capabilities_dataclass.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_during_call_hook.py b/tests/unit/proxy/utils/proxy_logging/test_during_call_hook.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_during_call_hook.pyrename to tests/unit/proxy/utils/proxy_logging/test_during_call_hook.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_guardrail_pipeline.py b/tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_guardrail_pipeline.pyrename to tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_internal_usage_cache.py b/tests/unit/proxy/utils/proxy_logging/test_internal_usage_cache.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_internal_usage_cache.pyrename to tests/unit/proxy/utils/proxy_logging/test_internal_usage_cache.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_lifecycle.py b/tests/unit/proxy/utils/proxy_logging/test_lifecycle.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_lifecycle.pyrename to tests/unit/proxy/utils/proxy_logging/test_lifecycle.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_mcp_bridging.py b/tests/unit/proxy/utils/proxy_logging/test_mcp_bridging.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_mcp_bridging.pyrename to tests/unit/proxy/utils/proxy_logging/test_mcp_bridging.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_module_helpers.py b/tests/unit/proxy/utils/proxy_logging/test_module_helpers.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_module_helpers.pyrename to tests/unit/proxy/utils/proxy_logging/test_module_helpers.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_post_call_failure_hook.py b/tests/unit/proxy/utils/proxy_logging/test_post_call_failure_hook.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_post_call_failure_hook.pyrename to tests/unit/proxy/utils/proxy_logging/test_post_call_failure_hook.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_post_call_success_hook.py b/tests/unit/proxy/utils/proxy_logging/test_post_call_success_hook.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_post_call_success_hook.pyrename to tests/unit/proxy/utils/proxy_logging/test_post_call_success_hook.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_pre_call_hook.py b/tests/unit/proxy/utils/proxy_logging/test_pre_call_hook.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_pre_call_hook.pyrename to tests/unit/proxy/utils/proxy_logging/test_pre_call_hook.pydiff --git a/tests/test_litellm/proxy/utils/proxy_logging/test_streaming_hooks.py b/tests/unit/proxy/utils/proxy_logging/test_streaming_hooks.pysimilarity index 100%rename from tests/test_litellm/proxy/utils/proxy_logging/test_streaming_hooks.pyrename to tests/unit/proxy/utils/proxy_logging/test_streaming_hooks.pydiff --git a/tests/unit/proxy/vector_store_endpoints/__init__.py b/tests/unit/proxy/vector_store_endpoints/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_access_control.py b/tests/unit/proxy/vector_store_endpoints/test_vector_store_access_control.pysimilarity index 100%rename from tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_access_control.pyrename to tests/unit/proxy/vector_store_endpoints/test_vector_store_access_control.pydiff --git a/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.py b/tests/unit/proxy/vector_store_endpoints/test_vector_store_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_endpoints.pyrename to tests/unit/proxy/vector_store_endpoints/test_vector_store_endpoints.pydiff --git a/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_rbac.py b/tests/unit/proxy/vector_store_endpoints/test_vector_store_rbac.pysimilarity index 100%rename from tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_rbac.pyrename to tests/unit/proxy/vector_store_endpoints/test_vector_store_rbac.pydiff --git a/tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_tenant_guard.py b/tests/unit/proxy/vector_store_endpoints/test_vector_store_tenant_guard.pysimilarity index 100%rename from tests/test_litellm/proxy/vector_store_endpoints/test_vector_store_tenant_guard.pyrename to tests/unit/proxy/vector_store_endpoints/test_vector_store_tenant_guard.pydiff --git a/tests/unit/proxy/vector_store_files_endpoints/__init__.py b/tests/unit/proxy/vector_store_files_endpoints/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/vector_store_files_endpoints/test_endpoints.py b/tests/unit/proxy/vector_store_files_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/vector_store_files_endpoints/test_endpoints.pyrename to tests/unit/proxy/vector_store_files_endpoints/test_endpoints.pydiff --git a/tests/unit/proxy/video_endpoints/__init__.py b/tests/unit/proxy/video_endpoints/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/tests/test_litellm/proxy/video_endpoints/test_endpoints.py b/tests/unit/proxy/video_endpoints/test_endpoints.pysimilarity index 100%rename from tests/test_litellm/proxy/video_endpoints/test_endpoints.pyrename to tests/unit/proxy/video_endpoints/test_endpoints.pydiff --git a/tests/test_litellm/proxy/video_endpoints/test_utils.py b/tests/unit/proxy/video_endpoints/test_utils.pysimilarity index 100%rename from tests/test_litellm/proxy/video_endpoints/test_utils.pyrename to tests/unit/proxy/video_endpoints/test_utils.py