mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-13 23:07:47 +00:00
53e2516ace
- Remove network dependency by mocking HuggingFace template fetch - Use mock template that produces correct format for test validation - Test now focuses on transformation logic, not network calls - Fixes flaky test failures due to network timeouts/rate limits The test verifies that prompt transformation occurs (not simple concatenation), which doesn't require the actual HuggingFace template. Mocking makes the test deterministic and faster while still validating the core behavior.
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.