mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
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
This commit is contained in:
parent
14a5c15224
commit
7fcd2687fe
1 changed files with 4 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue