tests: Add new argument to tests using '_create_reference_data' method.

This commit is contained in:
Martin Bornhold 2016-07-19 11:42:38 +02:00
parent c86781e72f
commit 9e7f173d13

View file

@ -302,9 +302,11 @@ class TestCreateReferenceData:
repo = mock.Mock()
repo.name = 'test-repo'
repo.alias = 'git'
full_repo_name = 'pytest-repo-group/' + repo.name
controller = summary.SummaryController()
result = controller._create_reference_data(repo, example_refs)
result = controller._create_reference_data(
repo, full_repo_name, example_refs)
expected_result = [
{
@ -335,8 +337,10 @@ class TestCreateReferenceData:
repo = mock.Mock()
repo.name = 'test-repo'
repo.alias = 'svn'
full_repo_name = 'pytest-repo-group/' + repo.name
controller = summary.SummaryController()
result = controller._create_reference_data(repo, example_refs)
result = controller._create_reference_data(
repo, full_repo_name, example_refs)
expected_result = [
{