Skip to content

Commit

Permalink
Regex update in test_read_df.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emprzy committed Dec 2, 2024
1 parent 660795f commit 00120cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flepimop/gempyor_pkg/tests/utils/test_read_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def test_raises_not_implemented_error(self) -> None:
"""
with pytest.raises(
expected_exception=NotImplementedError,
match=r".*Supported extensions are `.csv` or `.parquet`.",
match=rf"Invalid extension provided: '.txt'. Supported extensions are `.csv` or `.parquet`.",
) as _:
with NamedTemporaryFile(suffix=".txt") as temp_file:
read_df(fname=temp_file.name)
with pytest.raises(
expected_exception=NotImplementedError,
match=r".*Supported extensions are `.csv` or `.parquet`.",
match=rf"Invalid extension provided: '.txt'. Supported extensions are `.csv` or `.parquet`.",
) as _:
with NamedTemporaryFile(suffix=".txt") as temp_file:
fname = temp_file.name[:-4]
Expand Down

0 comments on commit 00120cf

Please sign in to comment.