From 452ddbbdba62481eb79c40aac0bca7aa5aa8250d Mon Sep 17 00:00:00 2001 From: Emily Przykucki Date: Wed, 20 Nov 2024 10:16:06 -0500 Subject: [PATCH] Update utils.py 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`. --- flepimop/gempyor_pkg/src/gempyor/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flepimop/gempyor_pkg/src/gempyor/utils.py b/flepimop/gempyor_pkg/src/gempyor/utils.py index 8c76ffb5e..397bd0909 100644 --- a/flepimop/gempyor_pkg/src/gempyor/utils.py +++ b/flepimop/gempyor_pkg/src/gempyor/utils.py @@ -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`." )