mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Sibling tests were mutating litellm.proxy.proxy_server.master_key and prisma_client with raw setattr. Values leaked across tests in the same xdist worker, flipping the auth short-circuit in user_api_key_auth and causing unrelated tests (e.g. test_ui_view_session_spend_logs_pagination) to return 401 instead of 200. Replace raw setattr with monkeypatch in the two offending files and add an autouse conftest fixture that snapshots/restores the known-leaky module globals for every proxy test. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_claude_code_marketplace.py | ||
| test_endpoints.py | ||