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 Nov 20, 2024
1 parent 452ddbb commit 99d2f36
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="Invalid extension txt. Must be 'csv' or 'parquet'.",
match=".*Supported extensions are \.`csv`\s+or\s+\.`parquet`\.",
) as _:
with NamedTemporaryFile(suffix=".txt") as temp_file:
read_df(fname=temp_file.name)
with pytest.raises(
expected_exception=NotImplementedError,
match="Invalid extension txt. Must be 'csv' or 'parquet'.",
match=".*Supported extensions are \.`csv`\s+or\s+\.`parquet`\.",
) as _:
with NamedTemporaryFile(suffix=".txt") as temp_file:
fname = temp_file.name[:-4]
Expand Down

0 comments on commit 99d2f36

Please sign in to comment.