Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
the function `test_raises_not_implemented_error()` in test file `test_read_df.py` on account that it was receiving a `ValueError` when it expected a `NotImplementedError`. I switched the error within `utils.py:read_df()` to be an expected `NotImplementedError`.
  • Loading branch information
emprzy committed Nov 20, 2024
1 parent 7e19700 commit 452ddbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flepimop/gempyor_pkg/src/gempyor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def read_df(
)
elif path.suffix == ".parquet":
return pd.read_parquet(path, engine="pyarrow")
raise ValueError(
raise NotImplementedError(
f"Invalid extension provided: '{path.suffix[1:]}'. Supported extensions are `.csv` or `.parquet`."
)

Expand Down

0 comments on commit 452ddbb

Please sign in to comment.