diff --git a/flexiblepricing/api_test.py b/flexiblepricing/api_test.py index 6726be65cf..b538ba1068 100644 --- a/flexiblepricing/api_test.py +++ b/flexiblepricing/api_test.py @@ -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"