예제 #1
0
 def test_missing_api_version(self):
     with self.assertRaises(ConfigurationError):
         config = get_config('invalid_api_version.yaml')
         assert config is not None
예제 #2
0
 def test_single_task(self):
     config = get_config('simple_example.yaml')
     assert config is not None
예제 #3
0
 def test_nested_dups(self):
     with self.assertRaises(ConfigurationError) as e:
         config = get_config('nested_duplicates.yaml')
         assert config is not None
         print(e)
예제 #4
0
 def test_for_schema(self):
     config = get_config('for.yaml')
     assert config is not None
예제 #5
0
 def test_switch_schema(self):
     config = get_config('switch.yaml')
     assert config is not None
예제 #6
0
 def test_fork_task_schema(self):
     config = get_config('par.yaml')
     assert config is not None
예제 #7
0
 def test_if_task_schema(self):
     config = get_config('if.yaml')
     assert config is not None