def test_check_more_json_wrong(self): yaml_template_more_comma = '{"a": "aa", "b":"" ,}' workflow_definition = make_workflow_template() workflow_definition.job_definitions[0].yaml_template = \ yaml_template_more_comma with self.assertRaises(ValueError): check_workflow_definition(workflow_definition)
def test_check_wrong_placeholder(self): workflow_definition = make_workflow_template() yaml_template_wrong_placeholder = '{"a": "${workflow.xx!x.nobody}"}' workflow_definition.job_definitions[0].yaml_template =\ yaml_template_wrong_placeholder with self.assertRaises(ValueError): check_workflow_definition(workflow_definition)
def test_check_workflow_definition(self): workflow_definition = make_workflow_template() check_workflow_definition(workflow_definition)