예제 #1
0
 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))
예제 #2
0
 def test_parse_job_results_empty(self):
     results = [{}]
     self.assertIsNone(rcommon.parse_job_results(results))