test(github): fix github-review test
@@ -123,7 +123,7 @@ class TestIt(unittest.TestCase):
requests_post.assert_called_with(
'status_url',
- data='{"state": "pending", "target_url": "GITHUB_URL/dashboard/#/project/projectname/build/123/123/job/jobname", "description": "InfraBox", "context": "Job: jobname"}',
+ data='{"state": "pending", "target_url": "GITHUB_URL/dashboard/#/project/projectname/build/123/123/job/jobname", "description": "%s", "context": "Job: jobname"}' % ("project_id:%s job_id:%s" % (self.job_data['project_id'], self.job_data['id']) ),
headers={'Authorization': 'token token', 'User-Agent': 'InfraBox'},
timeout=10,
verify=False)
@@ -149,7 +149,7 @@ class TestIt(unittest.TestCase):
execute_sql.side_effect = side_effect
handle_job_update(None, self.event)
- data = '{"state": "%s", "target_url": "GITHUB_URL/dashboard/#/project/projectname/build/123/123/job/jobname", "description": "InfraBox", "context": "Job: jobname"}' % self.expected_github_status
+ data = '{"state": "%s", "target_url": "GITHUB_URL/dashboard/#/project/projectname/build/123/123/job/jobname", "description": "%s", "context": "Job: jobname"}' % (self.expected_github_status, "project_id:%s job_id:%s" % (self.job_data['project_id'], self.job_data['id']))
requests_post.assert_called_with(
'status_url',
data=data,
