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