mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
test(team): mock the membership upsert the member add now issues on team create
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
0e74dd2811
commit
2a7dcc77b2
1 changed files with 1 additions and 1 deletions
|
|
@ -13387,7 +13387,7 @@ async def test_new_team_created_audit_event_carries_the_final_roster(monkeypatch
|
|||
mock_prisma.db.litellm_usertable.update = AsyncMock(return_value=user_row)
|
||||
membership_row = MagicMock()
|
||||
membership_row.model_dump.return_value = {"team_id": "team-audit-roster", "user_id": "alice", "budget_id": None}
|
||||
mock_prisma.db.litellm_teammembership.create = AsyncMock(return_value=membership_row)
|
||||
mock_prisma.db.litellm_teammembership.upsert = AsyncMock(return_value=membership_row)
|
||||
mock_prisma.db.litellm_auditlog.create = AsyncMock()
|
||||
_wire_team_create_tx(mock_prisma)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue