Skip to content

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]

test(auth): annotate centralized auth mocks

jesusee9294af53f2
diff --git a/tests/test_litellm/proxy/auth/test_user_api_key_auth.py b/tests/test_litellm/proxy/auth/test_user_api_key_auth.py
index 0bf49523869..bc2370579d4 100644
--- a/tests/test_litellm/proxy/auth/test_user_api_key_auth.py
+++ b/tests/test_litellm/proxy/auth/test_user_api_key_auth.py
@@ -5877,17 +5877,17 @@ async def test_centralized_common_checks_inherits_org_identity(
for k, v in attrs.items():
setattr(_proxy_server_mod, k, v)
with (
- patch(
+ patch( # test-quality-ok: centralized auth calls this module helper directly; no dependency injection seam exists
"litellm.proxy.auth.user_api_key_auth.get_team_object",
new_callable=AsyncMock,
return_value=fetched_team,
) as mock_get_team_object,
- patch(
+ patch( # test-quality-ok: centralized auth calls this module helper directly; no dependency injection seam exists
"litellm.proxy.auth.user_api_key_auth.get_org_object",
new_callable=AsyncMock,
return_value=organization,
) as mock_get_org_object,
- patch(
+ patch( # test-quality-ok: capture downstream token state without invoking unrelated common checks
"litellm.proxy.auth.user_api_key_auth.common_checks",
new_callable=AsyncMock,
) as mock_checks,