mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-13 23:07:47 +00:00
890cc08a3a
- Remove pytest-retry config from pyproject.toml (fixes merge conflict with main) - Fix asymmetric callback restoration in isolate_litellm_state fixture - Now properly saves and restores all callback lists - Prevents test pollution from callback state leakage - Add cache flush after module reload in setup_and_teardown - Prevents stale client instances after importlib.reload - Remove unused imports (curr_dir, Router) This addresses: 1. Merge conflict in pyproject.toml (CONFLICTING status) 2. Greptile's feedback about asymmetric callback handling 3. Missing cache flush after module reload 4. Code cleanliness (unused variables)
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