Show More
@@ -457,6 +457,8 b' class TestCreateFilesUrl(object):' | |||||
457 |
|
457 | |||
458 | class TestReferenceItems(object): |
|
458 | class TestReferenceItems(object): | |
459 | repo = mock.Mock() |
|
459 | repo = mock.Mock() | |
|
460 | repo.name = 'pytest-repo' | |||
|
461 | repo_full_name = 'pytest-repo-group/' + repo.name | |||
460 | ref_type = 'branch' |
|
462 | ref_type = 'branch' | |
461 | fake_url = '/abcde/' |
|
463 | fake_url = '/abcde/' | |
462 |
|
464 | |||
@@ -480,7 +482,8 b' class TestReferenceItems(object):' | |||||
480 |
|
482 | |||
481 | with url_patcher as url_mock, svn_patcher: |
|
483 | with url_patcher as url_mock, svn_patcher: | |
482 | result = controller._create_reference_items( |
|
484 | result = controller._create_reference_items( | |
483 |
self.repo, refs, self.ref_type, |
|
485 | self.repo, self.repo_full_name, refs, self.ref_type, | |
|
486 | self._format_function) | |||
484 | assert len(result) == amount |
|
487 | assert len(result) == amount | |
485 | assert url_mock.call_count == amount |
|
488 | assert url_mock.call_count == amount | |
486 |
|
489 | |||
@@ -499,7 +502,8 b' class TestReferenceItems(object):' | |||||
499 |
|
502 | |||
500 | with url_patcher as url_mock, svn_patcher: |
|
503 | with url_patcher as url_mock, svn_patcher: | |
501 | result = controller._create_reference_items( |
|
504 | result = controller._create_reference_items( | |
502 |
self.repo, refs, self.ref_type, |
|
505 | self.repo, self.repo_full_name, refs, self.ref_type, | |
|
506 | self._format_function) | |||
503 |
|
507 | |||
504 | url_mock.assert_called_once_with(self.repo, ref_name, ref_id, False) |
|
508 | url_mock.assert_called_once_with(self.repo, ref_name, ref_id, False) | |
505 | expected_result = [ |
|
509 | expected_result = [ |
General Comments 0
You need to be logged in to leave comments.
Login now