mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-03 08:23:16 +00:00
This test has failed repeatedly in CI with: 'Expected _add_prompt_to_generation_params to have been called once. Called 0 times.' Root cause: _add_prompt_to_generation_params is only called when _supports_prompt() returns True. Under cross-test state contamination in CI (parallel workers), langfuse_sdk_version can be in an unexpected state, causing _supports_prompt() to return False and silently skip the call (exception swallowed by the outer try/except). Fixes: - Use reset_mock(side_effect=True) so setUp's trace side_effect is cleared and the explicit return_value assignment actually takes effect - Patch _supports_prompt on the logger instance to always return True, making the _add_prompt_to_generation_params assertion independent of SDK version state Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.