mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-12 21:04:10 +00:00
5b9c7be558
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.