Skip to content
Snippets Groups Projects
Commit 4dde6424 authored by leufen1's avatar leufen1
Browse files

update tests

parent a99da0a3
No related branches found
No related tags found
3 merge requests!522filter can now combine obs, forecast, and apriori for first iteration. Further...,!521Resolve "release v2.4.0",!513Resolve "robust apriori estimate for short timeseries"
Pipeline #140051 failed
...@@ -27,7 +27,7 @@ class TestModelSetup: ...@@ -27,7 +27,7 @@ class TestModelSetup:
obj.data_store.set("lr_decay", "dummy_str", "general.model") obj.data_store.set("lr_decay", "dummy_str", "general.model")
obj.data_store.set("hist", "dummy_str", "general.model") obj.data_store.set("hist", "dummy_str", "general.model")
obj.data_store.set("epochs", 2) obj.data_store.set("epochs", 2)
obj.model_name = "%s.h5" obj.model_path = "%s.h5"
yield obj yield obj
RunEnvironment().__del__() RunEnvironment().__del__()
...@@ -97,7 +97,7 @@ class TestModelSetup: ...@@ -97,7 +97,7 @@ class TestModelSetup:
with pytest.raises(EmptyScope): with pytest.raises(EmptyScope):
self.current_scope_as_set(setup_with_model) # will fail because scope is not created self.current_scope_as_set(setup_with_model) # will fail because scope is not created
setup_with_model.get_model_settings() # this saves now the parameter test_param into scope setup_with_model.get_model_settings() # this saves now the parameter test_param into scope
assert {"test_param", "model_name"} <= self.current_scope_as_set(setup_with_model) assert {"test_param", "model_path"} <= self.current_scope_as_set(setup_with_model)
def test_build_model(self, setup_with_gen): def test_build_model(self, setup_with_gen):
assert setup_with_gen.model is None assert setup_with_gen.model is None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment