def test_load_configs_overwrite(self): config = workflow_manager.loadConfigs("test.config.workflow_config_args") assert config is not None assert config.conf_arg_int == 1 config.conf_arg_int = 2 assert config.conf_arg_int == 2
def test_load_configs_one_arg(self): config = workflow_manager.loadConfigs( "test.config.workflow_config_args") assert config is not None assert config.conf_arg_int == 1 assert config.conf_arg_float == 1.0 assert config.conf_arg_str == "1"
def test_load_configs_overwrite(self): config = workflow_manager.loadConfigs( "test.config.workflow_config_args") assert config is not None assert config.conf_arg_int == 1 config.conf_arg_int = 2 assert config.conf_arg_int == 2
def test_load_configs_multiple_arg(self): config = workflow_manager.loadConfigs(["test.config.workflow_config_args", "test.config.workflow_config"]) assert config is not None #from workflow_config_args assert config.conf_arg_int == 1 assert config.conf_arg_float == 1.0 assert config.conf_arg_str == "1" #from workflow_config assert config.a == None assert config.b == None
def test_load_configs_multiple_arg(self): config = workflow_manager.loadConfigs([ "test.config.workflow_config_args", "test.config.workflow_config" ]) assert config is not None #from workflow_config_args assert config.conf_arg_int == 1 assert config.conf_arg_float == 1.0 assert config.conf_arg_str == "1" #from workflow_config assert config.a == None assert config.b == None
def test_load_configs_one_arg(self): config = workflow_manager.loadConfigs("test.config.workflow_config_args") assert config is not None assert config.conf_arg_int == 1 assert config.conf_arg_float == 1.0 assert config.conf_arg_str == "1"
def test_load_configs_invalid(self): try: _ = workflow_manager.loadConfigs(None) pytest.fail("No config name not allowed", True) except InvalidAttributeException: assert True