Show More
@@ -1133,7 +1133,7 b' def user_util(request, pylonsapp):' | |||||
1133 | class UserUtility(object): |
|
1133 | class UserUtility(object): | |
1134 |
|
1134 | |||
1135 | def __init__(self, test_name="test"): |
|
1135 | def __init__(self, test_name="test"): | |
1136 | self._test_name = test_name |
|
1136 | self._test_name = self._sanitize_name(test_name) | |
1137 | self.fixture = Fixture() |
|
1137 | self.fixture = Fixture() | |
1138 | self.repo_group_ids = [] |
|
1138 | self.repo_group_ids = [] | |
1139 | self.user_ids = [] |
|
1139 | self.user_ids = [] | |
@@ -1146,6 +1146,11 b' class UserUtility(object):' | |||||
1146 | self.user_group_user_group_permission_ids = [] |
|
1146 | self.user_group_user_group_permission_ids = [] | |
1147 | self.user_permissions = [] |
|
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 | def create_repo_group( |
|
1154 | def create_repo_group( | |
1150 | self, owner=TEST_USER_ADMIN_LOGIN, auto_cleanup=True): |
|
1155 | self, owner=TEST_USER_ADMIN_LOGIN, auto_cleanup=True): | |
1151 | group_name = "{prefix}_repogroup_{count}".format( |
|
1156 | group_name = "{prefix}_repogroup_{count}".format( |
General Comments 0
You need to be logged in to leave comments.
Login now