From 90c6383b3f90f95a7c4890c565ad565b9652e678 Mon Sep 17 00:00:00 2001 From: ghiggi Date: Fri, 24 Feb 2023 18:45:24 +0100 Subject: [PATCH] Fix tests --- disdrodb/tests/test_config_files.py | 2 +- disdrodb/tests/test_l0a_processing.py | 2 +- disdrodb/tests/test_standards.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/disdrodb/tests/test_config_files.py b/disdrodb/tests/test_config_files.py index a594cb8f..9f3af7f6 100644 --- a/disdrodb/tests/test_config_files.py +++ b/disdrodb/tests/test_config_files.py @@ -35,7 +35,7 @@ class L0B_encodings_2n_level(BaseModel): ROOT_DISDRODB_FOLDER = os.path.join( os.path.dirname(os.path.dirname(os.path.realpath(__file__))), ) -CONFIG_FOLDER = os.path.join(ROOT_DISDRODB_FOLDER, "L0", "configs") +CONFIG_FOLDER = os.path.join(ROOT_DISDRODB_FOLDER, "l0", "configs") def list_files(path: str, file_name: str) -> List[str]: diff --git a/disdrodb/tests/test_l0a_processing.py b/disdrodb/tests/test_l0a_processing.py index 9efbf25f..3e6fb792 100644 --- a/disdrodb/tests/test_l0a_processing.py +++ b/disdrodb/tests/test_l0a_processing.py @@ -211,7 +211,7 @@ def test_drop_time_periods(): df_out = l0a_processing.drop_time_periods(df, time_periods=inside_time_periods) assert not np.any( df_out["time"].between( - inside_time_periods[0][0], inside_time_periods[0][1], inclusive=True + inside_time_periods[0][0], inside_time_periods[0][1], inclusive='both' ) ) diff --git a/disdrodb/tests/test_standards.py b/disdrodb/tests/test_standards.py index 04398de6..e483f612 100644 --- a/disdrodb/tests/test_standards.py +++ b/disdrodb/tests/test_standards.py @@ -9,7 +9,7 @@ ROOT_DISDRODB_FOLDER = os.path.join( os.path.dirname(os.path.dirname(os.path.realpath(__file__))), ) -CONFIG_FOLDER = os.path.join(ROOT_DISDRODB_FOLDER, "L0", "configs") +CONFIG_FOLDER = os.path.join(ROOT_DISDRODB_FOLDER, "l0", "configs") @pytest.mark.parametrize("sensor_name", os.listdir(CONFIG_FOLDER))