def test_model_get_config_error(self): # given manager = ModelManager() manager.models[BasicRangeModel.name] = BasicRangeModel bad_name = "bad-model" # when/then with pytest.raises(ValueError): manager.get_model_config(1, bad_name)
def test_model_setget_config(self): # given manager = ModelManager() manager.models[BasicRangeModel.name] = BasicRangeModel # when manager.set_model_config(1, BasicRangeModel.name) # then assert manager.get_model_config(1, BasicRangeModel.name)