##// END OF EJS Templates
tests: sanitize temp group name to conform with our schema validators that clear...
marcink -
r1122:6b984a38 default
parent child Browse files
Show More
@@ -1133,7 +1133,7 b' def user_util(request, pylonsapp):'
1133 1133 class UserUtility(object):
1134 1134
1135 1135 def __init__(self, test_name="test"):
1136 self._test_name = test_name
1136 self._test_name = self._sanitize_name(test_name)
1137 1137 self.fixture = Fixture()
1138 1138 self.repo_group_ids = []
1139 1139 self.user_ids = []
@@ -1146,6 +1146,11 b' class UserUtility(object):'
1146 1146 self.user_group_user_group_permission_ids = []
1147 1147 self.user_permissions = []
1148 1148
1149 def _sanitize_name(self, name):
1150 for char in ['[', ']']:
1151 name = name.replace(char, '_')
1152 return name
1153
1149 1154 def create_repo_group(
1150 1155 self, owner=TEST_USER_ADMIN_LOGIN, auto_cleanup=True):
1151 1156 group_name = "{prefix}_repogroup_{count}".format(
General Comments 0
You need to be logged in to leave comments. Login now