Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-at-mit committed Sep 10, 2024
1 parent 4923ed5 commit efdb819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flexiblepricing/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import json
from datetime import datetime, timedelta
from pathlib import Path

import ddt
import freezegun
Expand Down Expand Up @@ -61,7 +62,7 @@
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 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 # noqa: SIM115, PTH123
parse_country_income_thresholds(path)

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

0 comments on commit efdb819

Please sign in to comment.