예제 #1
0
 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
예제 #2
0
 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"
예제 #3
0
    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
예제 #4
0
 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
예제 #5
0
    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
예제 #6
0
 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"
예제 #7
0
 def test_load_configs_invalid(self):
     try:
         _ = workflow_manager.loadConfigs(None)
         pytest.fail("No config name not allowed", True)
     except InvalidAttributeException:
         assert True
예제 #8
0
 def test_load_configs_invalid(self):
     try:
         _ = workflow_manager.loadConfigs(None)
         pytest.fail("No config name not allowed", True)
     except InvalidAttributeException:
         assert True