litellm/tests/test_litellm/proxy/management_helpers
yuneng-jiang 49da936efb
test(audit-logs): let monkeypatch own the audit log and s3 callback globals (#37842)
Fifteen tests assigned litellm.audit_log_callbacks, s3_callback_params or
s3_audit_callback_params directly and leaned on two autouse fixtures to put
them back. monkeypatch.setattr does that at the point of use, so each test now
says what it sets, including the one that swaps the value mid-test to prove the
cache does not serve the stale params.

The fixtures keep only the work monkeypatch cannot do: the per-test empty
callback list, and clearing the logger and audit caches around each test.
2026-08-21 20:16:10 -07:00
..
team_metadata_validator_impls.py feat(team): custom metadata validation hook for team create and update (#33353) 2026-08-03 18:37:45 -07:00
test_access_group_team_sync.py fix(access groups): sync assigned_team_ids from the team write paths (#36825) 2026-08-14 04:45:36 +00:00
test_audit_log_callbacks.py test(audit-logs): let monkeypatch own the audit log and s3 callback globals (#37842) 2026-08-21 20:16:10 -07:00
test_management_helpers_utils.py fix(proxy): restore atomic user upsert when adding team members (#34457) 2026-07-24 02:22:34 +00:00
test_object_permission_utils.py feat(mcp): add all-proxy-mcpservers sentinel to grant teams every MCP server (#32012) 2026-07-03 13:59:28 -07:00
test_team_member_permission_checks.py fix(proxy): reject team-scoped object_permission on personal keys for non-admins 2026-06-27 19:47:14 -07:00
test_team_metadata_validation.py test: require a match= on broad pytest.raises, and drop duplicate parametrize cases (#37769) 2026-08-20 20:24:49 -07:00