mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-19 17:46:51 +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)
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.