From 7fcd2687fe7cc74b6b9fb8008891afa538392ef2 Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Mon, 7 Sep 2026 19:25:52 -0700 Subject: [PATCH] test: suppress TQ008 on the two module-state patches team_info resolves prisma_client and get_all_team_memberships from module state, so there is no collaborator to inject; the two sibling team_info tests patch the same way. Claude-Session: https://claude.ai/code/session_011Tn3657NkV6ojLqewL64Kb --- .../proxy/management_endpoints/test_team_endpoints.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py index 8fbf3e0ca67..5025e08933f 100644 --- a/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py +++ b/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py @@ -14122,9 +14122,11 @@ async def test_team_info_returns_parent_organization_models(organization, expect mock_prisma.db.litellm_teamtable.find_unique = AsyncMock(return_value=team_row) mock_prisma.get_data = AsyncMock(return_value=[]) + memberships = AsyncMock(return_value=[]) + with ( - patch("litellm.proxy.proxy_server.prisma_client", mock_prisma), - patch.object(team_endpoints, "get_all_team_memberships", AsyncMock(return_value=[])), + patch("litellm.proxy.proxy_server.prisma_client", mock_prisma), # test-quality-ok: no seam on team_info + patch.object(team_endpoints, "get_all_team_memberships", memberships), # test-quality-ok: no seam on team_info ): response = await team_endpoints.team_info( http_request=MagicMock(spec=Request),