Skip to content

Commit

Permalink
Regex update in test_write_df.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emprzy committed Dec 3, 2024
1 parent 8255da2 commit 8a5e772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flepimop/gempyor_pkg/tests/utils/test_write_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def test_raises_not_implemented_error(self) -> None:
"""
with pytest.raises(
expected_exception=NotImplementedError,
match=r".*Supported extensions are `.csv` or `.parquet`.",
match=r"Invalid extension provided: '.txt'. Supported extensions are `.csv` or `.parquet`.",
) as _:
with NamedTemporaryFile(suffix=".txt") as temp_file:
write_df(fname=temp_file.name, df=self.sample_df)
with pytest.raises(
expected_exception=NotImplementedError,
match=r".*Supported extensions are `.csv` or `.parquet`.",
match=r"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 8a5e772

Please sign in to comment.