Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 10, 2024
1 parent 488b5f8 commit 5a69d57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flexiblepricing/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
def test_parse_country_income_thresholds_no_header(tmp_path):
"""parse_country_income_thresholds should throw error if no header is found"""
path = tmp_path / "test.csv"
with Path.open(path, "w"), pytest.raises(CountryIncomeThresholdException) as exc: # create a file # noqa: SIM115, PTH123
with (
Path.open(path, "w"),
pytest.raises(CountryIncomeThresholdException) as exc,
): # create a file
parse_country_income_thresholds(path)

assert exc.value.args[0] == "Unable to find the header row"
Expand Down

0 comments on commit 5a69d57

Please sign in to comment.