Skip to content

Commit

Permalink
Merge branch '5343-upgrade-django-in-mitxonline' of https://github.co…
Browse files Browse the repository at this point in the history
…m/mitodl/mitxonline into 5343-upgrade-django-in-mitxonline
  • Loading branch information
cp-at-mit committed Sep 10, 2024
2 parents bc95f85 + 5a69d57 commit e22aefd
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 e22aefd

Please sign in to comment.