litellm/tests/test_litellm
Daniel JB Clark 7d9ef1546d
test(clinepass): move the provider tests into the CI-selected tree
The tests were under tests/test_litellm/llms/clinepass/chat/, but
.circleci/scripts/unit_selection.sh:62 builds the llm-other-providers shard
with `find tests/unit/llms -name 'test_*.py'`, and GitHub Actions consumes the
same script. Nothing errored -- the 482 lines of tests simply never ran in CI,
so the PR would have looked green on tests that never executed.

Moved to tests/unit/llms/clinepass/chat/, matching the layout cometapi and
deepseek already use for an OpenAI-compatible provider, including the
__init__.py files those directories carry, and renamed to
test_clinepass_chat_transformation.py to match that same convention.

41 passed at the new location, where tests/unit/conftest.py applies rather
than tests/test_litellm/conftest.py. The CI selector now lists the file.
2026-10-03 13:55:29 -04:00
..
integrations/clickhouse feat(traces): tracing development seed (#44363) 2026-10-03 09:59:51 +00:00
tracing fix(lens): paginate trace reads within ClickHouse limits (#44384) 2026-10-03 10:38:40 -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 test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -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