litellm/tests/test_litellm/llms/openrouter
ryan-crabbe-berri 21e9632713
test: add six ruff rules that catch tests which cannot fail (#37709)
`assert False` inside a `try:` raises AssertionError, which the `except
Exception` right below it catches, so several tests reported green no matter
what the code did. `pytest.fail` raises Failed, a BaseException, and escapes.

A bare `a == b` statement is evaluated and discarded. Nine of those sat in
tests, and one was comparing against a model name the router never produces.

Selects B011, B015, B018, PT015, PLR0133 and PLW0127 in ruff-tests.toml
alongside F821, with all 50 existing violations fixed, so no budget file or
ratchet is needed. CI already runs this config over tests/.
2026-08-20 14:21:26 -07:00
..
chat chore: litellm oss staging160626 (#30527) 2026-06-16 18:23:13 -07:00
image_edit style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
image_generation style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
responses test: add six ruff rules that catch tests which cannot fail (#37709) 2026-08-20 14:21:26 -07:00
test_openrouter_embedding_transformation.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_openrouter_provider_routing.py fix(openrouter): strip LiteLLM prefix when proxy sets custom_llm_provider 2026-03-27 20:35:17 +05:30