litellm/tests/test_litellm
Sameer Kankute deb9142117
Merge pull request #19400 from BerriAI/main
merge main iin 19/1 staging
2026-01-20 16:45:01 +05:30
..
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
containers Make keepalive_timeout parameter work for Gunicorn (#19087) 2026-01-16 03:32:59 +05:30
enterprise Revert "Stabilise mock tests" 2026-01-17 06:26:18 +09:00
experimental_mcp_client tests: patch MCP client mocks via module alias to avoid real network calls 2026-01-20 12:31:27 +09:00
google_genai Fix : test_streaming_multiple_partial_tool_calls 2026-01-16 09:29:54 +05:30
images
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
litellm_core_utils Merge branch 'main' into litellm_staging_01_16_2026 2026-01-19 18:11:21 +05:30
llms Merge pull request #19400 from BerriAI/main 2026-01-20 16:45:01 +05:30
passthrough
proxy Merge pull request #19400 from BerriAI/main 2026-01-20 16:45:01 +05:30
responses fix: event loop nesting issue in MCP chat completions with streaming 2026-01-15 15:36:56 +09:00
router_strategy
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 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_api_bridge_non_stream.py Add ChatGPT subscription support and responses bridge (#19030) 2026-01-19 05:37:45 -08:00
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
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