litellm/tests/test_litellm
Krish Dholakia e7bc700b20
Merge pull request #14640 from Sameerlite/litellm_gardrail_default_latest_message
[Feat]Add last message as default in gaurdrail
2025-09-17 23:42:40 -07:00
..
caching
completion_extras/litellm_responses_transformation Revert "Merge pull request #12865 from aholmberg/holmberg/default-reasoning" 2025-08-30 13:07:33 -07:00
enterprise/enterprise_callbacks
experimental_mcp_client [Fixes] Bug fixes to using LiteLLM MCP Gateway (#14392) 2025-09-10 19:12:11 -07:00
google_genai
integrations Merge pull request #14555 from mubashir1osmani/dd_spend_metric 2025-09-16 22:44:47 -07:00
litellm_core_utils fix: iscoroutine removed from hot path +50 RPS (#14649) 2025-09-17 19:01:43 -07:00
llms Merge pull request #14640 from Sameerlite/litellm_gardrail_default_latest_message 2025-09-17 23:42:40 -07:00
passthrough
proxy test: update test 2025-09-17 17:44:14 -07:00
responses test: add unit tests for response api bug fixes 2025-09-13 23:10:15 +09:00
router_strategy [Bug Fix] x-litellm-tags not routing with Responses API (#14289) 2025-09-05 09:40:37 -07:00
router_utils test 2025-09-06 16:38:43 -07:00
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: update unit test 2025-09-17 14:23:13 -07:00
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 fix(test_utils.py): fix test 2025-09-16 19:17:44 -07:00

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