litellm/tests/test_litellm/llms/perplexity
ryan-crabbe-berri 243ed4393d test: reject assertions on a caught error inside except (ruff PT017)
A test that asserts on the error inside its own except block passes when the
call stops raising, because nothing runs the handler. That is the exact case
the test exists to catch, so the regression lands green.

Rewrites all 111 such blocks into pytest.raises, which fails when the call
succeeds, and selects PT017 in ruff-tests.toml so no new one lands.
2026-08-21 13:35:08 -07:00
..
chat style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
embedding test: reject assertions on a caught error inside except (ruff PT017) 2026-08-21 13:35:08 -07:00
responses fix(perplexity): restore type='message' safety net for list inputs 2026-03-11 00:14:13 -03:00
__init__.py feat(perplexity): add embedding support for pplx-embed-v1 models (#22610) 2026-03-02 17:37:50 -08:00
test_perplexity.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_perplexity_cost_calculator.py fix(utils): resolve model ids that repeat the litellm provider prefix 2026-08-20 12:48:41 -07:00
test_perplexity_integration.py chore: litellm oss staging (#30968) 2026-06-23 07:31:44 -07:00