Skip to content
Snippets Groups Projects
Commit 39edc813 authored by leufen1's avatar leufen1
Browse files

tests fixed

parent de935cf8
Branches
Tags
5 merge requests!480Merge multiple stats into crps working branch,!470Develop,!467Resolve "release v2.2.0",!466Draft: Resolve "Include CRPS analysis and other ens verif methods or plots",!460Resolve "TECH: reduce CI running time"
Pipeline #108816 passed
......@@ -76,17 +76,17 @@ class TestPreProcessing:
caplog.set_level(logging.DEBUG)
obj_with_exp_setup.data_store.set("use_all_stations_on_all_data_sets", False, "general")
obj_with_exp_setup.create_set_split(slice(0, 2), "awesome")
assert ('root', 10, "Awesome stations (len=1): ['DEBW107']") in caplog.record_tuples
assert ('root', 10, "Awesome stations (len=2): ['DEBW107', 'DEBW013']") in caplog.record_tuples
data_store = obj_with_exp_setup.data_store
assert isinstance(data_store.get("data_collection", "general.awesome"), DataCollection)
with pytest.raises(NameNotFoundInScope):
data_store.get("data_collection", "general")
assert data_store.get("stations", "general.awesome") == ["DEBW107"]
assert data_store.get("stations", "general.awesome") == ["DEBW107", "DEBW013"]
def test_create_set_split_all_stations(self, caplog, obj_with_exp_setup):
caplog.set_level(logging.DEBUG)
obj_with_exp_setup.create_set_split(slice(0, 2), "awesome")
message = "Awesome stations (len=5): ['DEBW107', 'DEBW013', 'DEBW087', 'DEBW99X']"
message = "Awesome stations (len=4): ['DEBW107', 'DEBW013', 'DEBW087', 'DEBW99X']"
assert ('root', 10, message) in caplog.record_tuples
data_store = obj_with_exp_setup.data_store
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