From cc41b80770827afbe1a336953fe9008268b07dc5 Mon Sep 17 00:00:00 2001 From: yucheng Date: Sat, 19 Sep 2026 22:46:37 +0000 Subject: [PATCH] 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> --- .../proxy/management_endpoints/test_team_endpoints.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 3da900d4d9a..fe461eca4a1 100644 --- a/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py +++ b/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py @@ -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(