litellm/tests/test_litellm
lokm01 915aaee64b fix(databricks): tighten endpoint guard, pass api_base to transcription auth, drop no-op override
- endpoint-name guard drops '.' so '..' and dot-traversal can no longer
  shape the invoke path; invalid-name test now covers databricks/.. too
- _prepare_audio_transcription_request passes api_base into
  validate_environment (chat-handler convention), so an explicit api_base
  authenticates without DATABRICKS_API_BASE; regression test dispatches
  with per-call api_base and no env var
- remove has_native_transcription_endpoint override: databricks is not in
  OPENAI_AUDIO_TRANSCRIPTION_PROVIDERS, so the base-class default is what
  main.py already reads; cover the non-text predictions element branch
2026-09-27 10:46:56 +02:00
..
llms/databricks/audio_transcription fix(databricks): tighten endpoint guard, pass api_base to transcription auth, drop no-op override 2026-09-27 10:46:56 +02:00
proxy feat(cli): reuse saved agent setup and add reconfigure (#43392) 2026-09-26 18:46:36 -07:00
__init__.py
conftest.py test: move tests/test_litellm core utils, routing, responses, caching and rust_bridge into tests/unit (#43199) 2026-09-25 17:10:13 -07:00
readme.md
test_check_unbounded_in_lists.py ci: fail on new unbounded SQL IN lists and add a Prisma chunking helper (#42629) 2026-09-26 13:40:44 -07:00
test_conftest.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