litellm/tests/test_litellm
Alexsander Hamir 014c74fd06
[Refactor] litellm/init.py: lazy-load AmazonConverseConfig (#18069)
- Add LLM_CONFIG_NAMES tuple and _lazy_import_llm_configs function in _lazy_imports.py
- Remove direct import of AmazonConverseConfig from __init__.py
- Add lazy loading handler in __getattr__ to dispatch LLM config imports
- Add type stub for AmazonConverseConfig in TYPE_CHECKING block
- Add test_llm_config_lazy_imports test to verify lazy loading works
- Follows same pattern as DOTPROMPT_NAMES for consistency
2025-12-16 10:48:11 -08:00
..
a2a_protocol [Feat] A2A Gateway - allow adding Azure Foundry Agents on UI (#17909) 2025-12-12 16:38:04 -08:00
caching
completion_extras Guardrails API - support LLM tool call response checks on /chat/completions, /v1/responses, /v1/messages on regular + streaming calls (#17619) 2025-12-15 18:19:52 +05:30
containers
enterprise
experimental_mcp_client
google_genai
integrations [Fix] CI/CD - Fix failing proxy and core integration tests (#17926) 2025-12-13 10:11:01 -08:00
litellm_core_utils
llms Merge pull request #18025 from BerriAI/litellm_staging_12_16_2025 2025-12-16 22:31:39 +05:30
passthrough
proxy Revert "fix(proxy): extract model from vertex ai passthrough url pattern (#17…" 2025-12-16 21:44:10 +05:30
responses Add test for handling provider specific tools 2025-12-15 17:41:38 +05:30
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
test_exception_mapping_request_attribute.py
test_filter_out_litellm_params.py
test_groq_streaming_encoding.py
test_lazy_imports.py [Refactor] litellm/init.py: lazy-load AmazonConverseConfig (#18069) 2025-12-16 10:48:11 -08:00
test_logging.py
test_lowest_latency_zero_tokens.py
test_main.py
test_nested_drop_params.py
test_redis.py
test_responses_id_security.py
test_router_google_genai.py
test_router.py
test_shared_session_integration.py
test_system_message_format_bug.py
test_utils.py fix(cache): handle string content in is_cached_message (#17853) 2025-12-12 03:59:52 -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