mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-26 02:20:11 +00:00
The test_sso_key_generate_shows_deprecation_banner test was failing in CI with a 403 Forbidden error because the SSO endpoint checks for premium_user at line 297 in ui_sso.py. The fix adds a monkeypatch for premium_user at its source location (litellm.proxy.proxy_server.premium_user) to bypass the enterprise check during testing. Fixes the intermittent test failure where the endpoint would return 403 instead of the expected 200 status code. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Testing for litellm/
This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.
The point of this is to:
- Increase test coverage of
litellm/ - Make it easy for contributors to add tests for the
litellm/package and easily run tests without needing LLM API keys.
File name conventions
litellm/proxy/test_caching_routes.pymaps tolitellm/proxy/caching_routes.pytest_<filename>.pymaps tolitellm/<filename>.py