Permalink
Browse files

I meant python 2.7

  • Loading branch information...
1 parent ad58d46 commit 4f9a98248a8f66af21782052b7e9fbb8cc3dc881 Carles Barrobés committed Jul 10, 2012
Showing with 10 additions and 2 deletions.
  1. +2 −2 .travis.yml
  2. +8 −0 autojenkins/tests/test_unit_jobs.py
View
@@ -1,6 +1,6 @@
language: python
python:
- - 2.6
- # - 2.7
+ # - 2.6
+ - 2.7
install: pip install -r requirements.txt -r test-requirements.txt
script: nosetests --with-xunit --cover-erase --with-xcoverage --cover-inclusive --cover-html --cover-package=autojenkins autojenkins
@@ -79,6 +79,14 @@ def test_get_methods_with_jobname(self, case, requests, Template):
auth=None)
getattr(self, 'checks_{0}'.format(method))(response)
+ def test_build_info(self, requests, Template):
+ url = 'job/name/3/api/python'
+ requests.get.return_value = mock_response('last_build_info.txt')
+ self.jenkins.build_info('name', 3)
+ requests.get.assert_called_once_with(
+ 'http://jenkins/' + url,
+ auth=None)
+
def check_result(self, response, route, value):
for key in route:
response = response[key]

0 comments on commit 4f9a982

Please sign in to comment.