litellm/tests/test_litellm
2026-01-20 09:52:38 +09: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 fix(redis): handle float redis_version from AWS ElastiCache Valkey (#16207) 2025-11-04 19:20:00 -08:00
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 Revert "Stabilise mock tests" 2026-01-17 06:26:18 +09:00
experimental_mcp_client chore: switch experimental client to streamable_http_client API 2026-01-20 07:37:50 +09:00
google_genai Fix : test_streaming_multiple_partial_tool_calls 2026-01-16 09:29:54 +05:30
images fix(image_edit): add drop_params support and fix Vertex AI config (#18077) 2025-12-17 11:28:34 +05:30
integrations [Feat] Claude Code - Add Websearch support using LiteLLM /search (using web search interception hook) (#19263) 2026-01-16 21:10:05 -08:00
interactions fix: test_create_simple_string_input 2026-01-05 17:15:12 +05:30
litellm_core_utils Merge branch 'main' into litellm_staging_01_16_2026 2026-01-19 18:11:21 +05:30
llms Merge pull request #19343 from BerriAI/litellm_anthropic_header_fix_19_jan 2026-01-19 18:24:46 +05:30
passthrough fix test claude-sonnet-4-5-20250929 2025-10-31 18:13:29 -07:00
proxy Merge remote-tracking branch 'upstream/main' into litellm_feat_mcp_version_up 2026-01-20 09:52:38 +09: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 [Feat] Add Custom Secret Manager - Allow users to define and write a custom secret manager (#16297) 2025-11-05 17:20:26 -08:00
types
vector_stores
__init__.py
conftest.py
log.txt
readme.md Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
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 Revert "Fix audio cost per second override (#19158)" 2026-01-19 18:51:08 +05:30
test_eager_tiktoken_load.py
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
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_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_per_deployment_num_retries.py test: fix missing test 2026-01-16 10:33:53 +09:00
test_router.py Manual revert #19078 2026-01-17 06:54:08 +09:00
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

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