From 93ddba11a8c54ff97615ca446c0793cd0cd309c6 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 21 Mar 2017 11:55:21 +0100 Subject: [PATCH] tests: allow specifing repo_type in user_util create_repo --- rhodecode/tests/plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rhodecode/tests/plugin.py b/rhodecode/tests/plugin.py index 9a21f48c..dadc6a42 100644 --- a/rhodecode/tests/plugin.py +++ b/rhodecode/tests/plugin.py @@ -1145,13 +1145,14 @@ class UserUtility(object): self.repo_group_ids.append(repo_group.group_id) return repo_group - def create_repo(self, owner=TEST_USER_ADMIN_LOGIN, parent=None, auto_cleanup=True): + def create_repo(self, owner=TEST_USER_ADMIN_LOGIN, parent=None, + auto_cleanup=True, repo_type='hg'): repo_name = "{prefix}_repository_{count}".format( prefix=self._test_name, count=len(self.repos_ids)) repository = self.fixture.create_repo( - repo_name, cur_user=owner, repo_group=parent) + repo_name, cur_user=owner, repo_group=parent, repo_type=repo_type) if auto_cleanup: self.repos_ids.append(repository.repo_id) return repository