litellm/tests/test_litellm
Fabricio Ceschin faaae888f1 Merge conflicts
2025-09-08 11:34:45 -04:00
..
caching
completion_extras/litellm_responses_transformation
enterprise/enterprise_callbacks
experimental_mcp_client
google_genai
integrations
litellm_core_utils
llms
passthrough
proxy
responses
router_strategy
router_utils
secret_managers
types
vector_stores
__init__.py
conftest.py
log.txt
readme.md
test_constants.py
test_cost_calculation_log_level.py
test_cost_calculator.py
test_groq_streaming_encoding.py
test_logging.py
test_lowest_latency_zero_tokens.py
test_main.py
test_router.py
test_system_message_format_bug.py
test_utils.py

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