mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-13 09:06:18 +00:00
1393c76578
* Fix: Add prisma generate to proxy tests CI job - Add prisma generate command before pytest in litellm_mapped_tests_proxy job - Fixes 3 test failures: test_health_liveliness_endpoint, test_health_liveness_endpoint, test_health_readiness - Matches pattern used in litellm_mapped_enterprise_tests job * Fix: Add missing prompt_spec parameter to TestCustomPromptManagement - Add prompt_spec parameter to get_chat_completion_prompt() method signature - Fixes 2 test failures: test_custom_prompt_management_with_prompt_id and test_custom_prompt_management_with_prompt_id_and_prompt_variables - Aligns test mock with base class method signature from CustomPromptManagement * Fix: Handle string datetime values in OpenTelemetry timestamp conversion - Add _to_timestamp helper to handle datetime, float, and string inputs - Fixes test_handle_success_spans_and_metrics failure - Handles string datetime format from JSON deserialization (e.g. '2025-06-22 10:59:08.399523') - Applied to all timestamp conversions in OpenTelemetry metrics methods * Fix OpenTelemetry timestamp parsing to handle datetime strings with/without microseconds
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