litellm/tests/test_litellm
yuneng-jiang 6a7edd8f2b
Merge pull request #18785 from BerriAI/litellm_user_promethus_metrics
[Feature] User Metrics for Promethus
2026-01-15 15:51:02 -08:00
..
a2a_protocol
anthropic_interface/exceptions [bug fix] do not fallback to token counter if disable_token_counter is enabled (#19041) 2026-01-13 16:53:38 -08:00
caching
completion_extras Add annotations to completions responses API bridge 2026-01-07 14:30:31 +05:30
containers [Fix] Containers API - Allow routing to regional endpoints (#19118) 2026-01-14 17:28:18 -08:00
enterprise Fix: mock test tests 2026-01-15 22:02:42 +05:30
experimental_mcp_client
google_genai fix(google_genai): forward extra_headers in generateContent adapter (#18935) 2026-01-12 16:23:58 +05:30
images
integrations Fix: response enterprise tests 2026-01-15 21:25:22 +05:30
interactions
litellm_core_utils Added ability to customize logfire base url through env var (#19148) 2026-01-16 00:10:59 +05:30
llms Fix: mock test tests 2026-01-15 22:02:42 +05:30
passthrough
proxy Merge pull request #18785 from BerriAI/litellm_user_promethus_metrics 2026-01-15 15:51:02 -08:00
responses fix: event loop nesting issue in MCP chat completions with streaming 2026-01-15 15:36:56 +09:00
router_strategy feat(tag-routing): support toggling tag matching between ANY and ALL (#18776) 2026-01-08 23:39:03 +05:30
router_utils
secret_managers
types
vector_stores
__init__.py
conftest.py
log.txt
readme.md
test_acompletion_session_reuse_e2e.py
test_add_deployment_no_master_key.py
test_aembedding_session_reuse_e2e.py
test_azure_video_router.py
test_claude_haiku_4_5_config.py
test_constants.py
test_container_router.py
test_cost_calculation_log_level.py
test_cost_calculator.py [Feat] New Model - Azure Model Router on LiteLLM AI Gateway (#19054) 2026-01-13 18:31:43 -08:00
test_eager_tiktoken_load.py Add LITELLM_DISABLE_LAZY_LOADING env var to fix VCR cassette creation issue (#18725) 2026-01-06 14:49:11 -08:00
test_exception_header_preservation.py fix: preserve llm_provider-* headers in error responses (#19020) 2026-01-14 22:49:39 +05:30
test_exception_mapping_request_attribute.py
test_filter_out_litellm_params.py
test_gpt_image_cost_calculator.py
test_groq_streaming_encoding.py
test_lazy_imports.py Fix: test_token_counter_lazy_imports 2026-01-08 16:44:35 +05:30
test_logging.py
test_lowest_latency_zero_tokens.py
test_main.py
test_model_response_normalization.py Normalize OpenAI SDK BaseModel choices/messages to avoid Pydantic serializer warnings (#18972) 2026-01-14 03:40:11 +05:30
test_nested_drop_params.py
test_per_deployment_num_retries.py fix: num_retries in litellm_params (#18968) as per config (#18975) 2026-01-14 04:07:36 +05:30
test_redis.py
test_responses_id_security.py fix(ui): use non-streaming method for endpoint v1/a2a/message/send in… (#19025) 2026-01-14 03:29:10 +05:30
test_router_google_genai.py
test_router.py Fix: test router 2026-01-15 19:21:31 +05:30
test_shared_session_integration.py
test_system_message_format_bug.py
test_utils_custom.py Fix :test_count_tokens_caching 2026-01-10 00:57:11 +05:30
test_utils.py [Feat] New Model - Azure Model Router on LiteLLM AI Gateway (#19054) 2026-01-13 18:31:43 -08:00
test_uuid_helper.py
test_video_generation.py fix: test_video_status_basic 2026-01-08 17:30:58 +05:30

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