mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
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. |
||
|---|---|---|
| .. | ||
| integrations/clickhouse | ||
| tracing | ||
| __init__.py | ||
| conftest.py | ||
| readme.md | ||
| test_check_unbounded_in_lists.py | ||
| 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:
- Increase test coverage of
litellm/ - 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.pymaps tolitellm/proxy/caching_routes.pytest_<filename>.pymaps tolitellm/<filename>.py