From 5a69d571a527cf2693daa388adc415a83dd8887c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:10:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- flexiblepricing/api_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"