litellm/tests/test_litellm/integrations/focus
ryan-crabbe-berri b76def0e5d
test: require a match= on broad pytest.raises, and drop duplicate parametrize cases (#37769)
`pytest.raises(Exception)` with no `match=` passes on any error that broad. A
TypeError from a refactor, a botched fixture, an import that moved: all of them
read as the rejection the test claims to police, so the test goes green for the
wrong reason and stays green after the behaviour it guards is gone.

PT011 closes that gap for the 317 sites B017 could not reach, because B017 only
fires on a single-statement body with no `as e` binding. Each pattern here is the
message the code actually raised, recorded by running the sites under a plugin
that logged the concrete type and text per call site, so the assertions describe
observed behaviour rather than a guess. Where a site raises more than one message
across its parametrize cases, the pattern is an alternation of what was seen;
where the exception carries an empty `str()` and puts the text on `.message`, the
site keeps a narrow `noqa` with the reason.

PT014 removes four parametrize cases that were listed twice. The duplicate re-runs
an assertion that already passed, and it usually marks a case someone meant to
vary and forgot to edit.
2026-08-20 20:24:49 -07:00
..
test_csv_serializer.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_destination_factory.py Add Vantage integration for FOCUS CSV export 2026-03-11 13:51:36 +05:30
test_focus_database.py test: require a match= on broad pytest.raises, and drop duplicate parametrize cases (#37769) 2026-08-20 20:24:49 -07:00
test_focus_gcs_destination.py Litellm oss staging 080626 (#29932) 2026-06-08 13:49:52 -07:00
test_focus_transformer.py Litellm OSS Staging 010626 (#29422) 2026-06-01 21:42:51 -07:00
test_mavvrik_destination.py chore: litellm oss staging (#31185) 2026-06-26 09:17:44 -07:00
test_s3_destination.py test: require a match= on broad pytest.raises, and drop duplicate parametrize cases (#37769) 2026-08-20 20:24:49 -07:00
test_transformer.py feat(vantage): include organization metadata in FOCUS Tags export (#28184) 2026-06-09 02:59:21 +03:00
test_vantage_destination.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00