Example #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
Example #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"
Example #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
Example #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
Example #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
Example #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"
Example #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
Example #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