litellm/tests/test_litellm/llms/sagemaker
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
..
test_sagemaker_chat_transformation.py fix(sagemaker): forward native streaming events as they arrive to cut TTFT 2026-07-23 04:03:25 +00:00
test_sagemaker_common_utils.py test: add six ruff rules that catch tests which cannot fail (#37709) 2026-08-20 14:21:26 -07:00
test_sagemaker_completion_handler.py test(sagemaker): assert make_sync_call maps non-200 to SagemakerError 2026-07-23 04:31:11 +00:00
test_sagemaker_embedding_role_assumption.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_sagemaker_embedding_voyage.py fix(sagemaker): send native Cohere embed payload to Cohere SageMaker endpoints (#28613) 2026-05-22 12:00:42 -07:00
test_sagemaker_nova_transformation.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00