From ee9294af53f2e681fce2f95a80ae266766f19ce8 Mon Sep 17 00:00:00 2001 From: jesus Date: Thu, 17 Sep 2026 22:08:45 +0000 Subject: [PATCH] test(auth): annotate centralized auth mocks Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/test_litellm/proxy/auth/test_user_api_key_auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,