##// END OF EJS Templates
tests: allow specifing repo_type in user_util create_repo
marcink -
r1569:037619e0 default
parent child Browse files
Show More
@@ -1145,13 +1145,14 b' class UserUtility(object):'
1145 self.repo_group_ids.append(repo_group.group_id)
1145 self.repo_group_ids.append(repo_group.group_id)
1146 return repo_group
1146 return repo_group
1147
1147
1148 def create_repo(self, owner=TEST_USER_ADMIN_LOGIN, parent=None, auto_cleanup=True):
1148 def create_repo(self, owner=TEST_USER_ADMIN_LOGIN, parent=None,
1149 auto_cleanup=True, repo_type='hg'):
1149 repo_name = "{prefix}_repository_{count}".format(
1150 repo_name = "{prefix}_repository_{count}".format(
1150 prefix=self._test_name,
1151 prefix=self._test_name,
1151 count=len(self.repos_ids))
1152 count=len(self.repos_ids))
1152
1153
1153 repository = self.fixture.create_repo(
1154 repository = self.fixture.create_repo(
1154 repo_name, cur_user=owner, repo_group=parent)
1155 repo_name, cur_user=owner, repo_group=parent, repo_type=repo_type)
1155 if auto_cleanup:
1156 if auto_cleanup:
1156 self.repos_ids.append(repository.repo_id)
1157 self.repos_ids.append(repository.repo_id)
1157 return repository
1158 return repository
General Comments 0
You need to be logged in to leave comments. Login now