def test_check_outcome(get_job, metadata, expected_messages): job = get_job job.metadata = metadata assert_results_equal( check_outcome(job), create_result("Job Outcome", expected_messages) )
def check_metadata(self, job): self.save_result(metadata_rules.check_outcome(job)) self.save_result(metadata_rules.check_errors(job))
def test_check_outcome(get_job, metadata, expected_messages): job = get_job job.metadata = metadata result = check_outcome(job) assert result == create_result("Job Outcome", expected_messages)