##// END OF EJS Templates
tests: Add new argument to tests using '_create_reference_data' method.
Martin Bornhold -
r461:1e3f3c4a default
parent child Browse files
Show More
@@ -302,9 +302,11 b' class TestCreateReferenceData:'
302 repo = mock.Mock()
302 repo = mock.Mock()
303 repo.name = 'test-repo'
303 repo.name = 'test-repo'
304 repo.alias = 'git'
304 repo.alias = 'git'
305 full_repo_name = 'pytest-repo-group/' + repo.name
305 controller = summary.SummaryController()
306 controller = summary.SummaryController()
306
307
307 result = controller._create_reference_data(repo, example_refs)
308 result = controller._create_reference_data(
309 repo, full_repo_name, example_refs)
308
310
309 expected_result = [
311 expected_result = [
310 {
312 {
@@ -335,8 +337,10 b' class TestCreateReferenceData:'
335 repo = mock.Mock()
337 repo = mock.Mock()
336 repo.name = 'test-repo'
338 repo.name = 'test-repo'
337 repo.alias = 'svn'
339 repo.alias = 'svn'
340 full_repo_name = 'pytest-repo-group/' + repo.name
338 controller = summary.SummaryController()
341 controller = summary.SummaryController()
339 result = controller._create_reference_data(repo, example_refs)
342 result = controller._create_reference_data(
343 repo, full_repo_name, example_refs)
340
344
341 expected_result = [
345 expected_result = [
342 {
346 {
General Comments 0
You need to be logged in to leave comments. Login now