Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Juca Crispim committed Oct 25, 2017
1 parent acfc366 commit b3677a9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/unit/master/test_hole.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,23 @@ def test_repo_add(self):

self.assertTrue(repo['repo-add']['id'])

@async_test
def test_repo_add_parallel_builds(self):
yield from self._create_test_data()

name = 'reponameoutro'
url = '[email protected]'
vcs_type = 'git'
update_seconds = 300
slaves = ['name']
action = 'repo-add'
handler = hole.HoleHandler({}, action, MagicMock())

repo = yield from handler.repo_add(name, url, update_seconds, vcs_type,
slaves, parallel_builds=1)

self.assertEqual(repo['repo-add']['parallel_builds'], 1)

@async_test
def test_repo_get_with_repo_name(self):
yield from self._create_test_data()
Expand Down

0 comments on commit b3677a9

Please sign in to comment.