def test_parse_job_results_with_git_url(self): results = [{"git_url": "url"}] expected = { "git_commit": "Unknown", "git_branch": "Unknown", "git_url": "url" } self.assertDictEqual(expected, rcommon.parse_job_results(results))
def test_parse_job_results_empty(self): results = [{}] self.assertIsNone(rcommon.parse_job_results(results))