test(team): patch the scheduled member-add audit helper in the cache eviction test

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-19 22:46:37 +00:00
parent 2ade97f80e
commit cc41b80770

View file

@ -13866,8 +13866,7 @@ async def test_team_member_add_evicts_the_new_members_cached_user_row_on_every_w
side_effect=fake_add_team_members_to_team,
),
patch( # test-quality-ok: team_member_add has no injection seam for its prisma-backed helpers
"litellm.proxy.management_endpoints.team_endpoints._create_team_member_add_audit_logs",
new_callable=AsyncMock,
"litellm.proxy.management_endpoints.team_endpoints._schedule_team_member_add_audit_logs",
),
):
await team_member_add(