Files
litellm/tests/test_litellm
jquinter 01ff53822c Merge pull request #21440 from BerriAI/fix/langfuse-test-sys-modules-mock
fix: prevent sys.modules["langfuse"] import failures in langfuse unit tests
2026-02-19 01:47:07 -03:00
..
2026-02-18 18:53:59 -08:00
2026-02-14 13:40:48 -08:00

Testing for litellm/

This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.

The point of this is to:

  1. Increase test coverage of litellm/
  2. 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.py maps to litellm/proxy/caching_routes.py
  • test_<filename>.py maps to litellm/<filename>.py