Skip to content
Snippets Groups Projects
Commit 9b59692a authored by leufen1's avatar leufen1
Browse files

update tests, ready for merge

parent 7df4876f
No related branches found
No related tags found
8 merge requests!468first implementation of toar-data-v2, can load data (but cannot process these...,!467Resolve "release v2.2.0",!455update for reqs,!448Resolve "update HPC environment",!446first implementation of toar-data-v2, can load data (but cannot process these...,!445Draft: Resolve "update HPC environment",!440Resolve "Load data from ToarDB V2",!437Resolve "era5 data"
Pipeline #105109 passed
...@@ -30,7 +30,7 @@ class TestPreProcessing: ...@@ -30,7 +30,7 @@ class TestPreProcessing:
@pytest.fixture @pytest.fixture
def obj_with_exp_setup(self): def obj_with_exp_setup(self):
ExperimentSetup(stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087', 'DEBW001'], ExperimentSetup(stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087', 'DEBW99X'],
statistics_per_var={'o3': 'dma8eu', 'temp': 'maximum'}, station_type="background", statistics_per_var={'o3': 'dma8eu', 'temp': 'maximum'}, station_type="background",
data_handler=DefaultDataHandler) data_handler=DefaultDataHandler)
pre = object.__new__(PreProcessing) pre = object.__new__(PreProcessing)
...@@ -87,7 +87,7 @@ class TestPreProcessing: ...@@ -87,7 +87,7 @@ class TestPreProcessing:
def test_create_set_split_all_stations(self, caplog, obj_with_exp_setup): def test_create_set_split_all_stations(self, caplog, obj_with_exp_setup):
caplog.set_level(logging.DEBUG) caplog.set_level(logging.DEBUG)
obj_with_exp_setup.create_set_split(slice(0, 2), "awesome") obj_with_exp_setup.create_set_split(slice(0, 2), "awesome")
message = "Awesome stations (len=6): ['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087', 'DEBW001']" message = "Awesome stations (len=6): ['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087', 'DEBW99X']"
assert ('root', 10, message) in caplog.record_tuples assert ('root', 10, message) in caplog.record_tuples
data_store = obj_with_exp_setup.data_store data_store = obj_with_exp_setup.data_store
assert isinstance(data_store.get("data_collection", "general.awesome"), DataCollection) assert isinstance(data_store.get("data_collection", "general.awesome"), DataCollection)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment