Permalink
Browse files

Update autojenkins/tests/test_unit_jobs.py

Fixing Travis fail.
  • Loading branch information...
1 parent 51345b2 commit c4464842179b5df8d9af1fb4168310e50401c9ed @rdodev rdodev committed Nov 1, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 autojenkins/tests/test_unit_jobs.py
@@ -41,6 +41,7 @@ def test_all_jobs(self, requests):
requests.get.return_value = mock_response(response)
jobs = self.jenkins.all_jobs()
requests.get.assert_called_once_with('http://jenkins/api/python',
+ verify=True,
auth=None)
self.assertEqual(jobs, [('job1', 'blue')])
@@ -75,6 +76,7 @@ def test_get_methods_with_jobname(self, case, requests):
response = getattr(self.jenkins, method)('name')
requests.get.assert_called_once_with(
'http://jenkins/' + url.format('name'),
+ verify=True,
auth=None)
getattr(self, 'checks_{0}'.format(method))(response)
@@ -84,6 +86,7 @@ def test_build_info(self, requests):
self.jenkins.build_info('name', 3)
requests.get.assert_called_once_with(
'http://jenkins/' + url,
+ verify=True,
auth=None)
def check_result(self, response, route, value):

0 comments on commit c446484

Please sign in to comment.