mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
test(keys): mock writer_db team lookup used by check_db_only path
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
0a3557e7ca
commit
1917700a57
1 changed files with 3 additions and 3 deletions
|
|
@ -20491,9 +20491,9 @@ async def test_project_detachment_uses_effective_project_for_validation(project_
|
|||
|
||||
def _project_assignment_prisma() -> MagicMock:
|
||||
database = MagicMock()
|
||||
database.db.litellm_teamtable.find_unique = AsyncMock(
|
||||
return_value=LiteLLM_TeamTable(team_id="team-lit-5823", members=[])
|
||||
)
|
||||
team_row: Final = LiteLLM_TeamTable(team_id="team-lit-5823", members=[])
|
||||
database.db.litellm_teamtable.find_unique = AsyncMock(return_value=team_row)
|
||||
database.writer_db.litellm_teamtable.find_unique = AsyncMock(return_value=team_row)
|
||||
return database
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue