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: suppress TQ008 on the two module-state patches

ryan-crabbe-berri3f42a4fc9810
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 d41be8b14b6..c28e398e451 100644
--- a/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py
+++ b/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py
@@ -14212,9 +14212,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),