1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

admin add group with period in name (#3712)

* admin add group with period in name

* user add group with period in name
This commit is contained in:
sniper-py
2019-06-26 18:19:00 +08:00
committed by lian
parent 00ec69ea27
commit ad18e874b1
5 changed files with 28 additions and 7 deletions

View File

@@ -62,8 +62,8 @@ class GroupsTest(BaseTestCase):
self.login_as(self.admin)
url = reverse('api-v2.1-admin-groups')
limit_punctuation = """-'_"""
group_name = randstring(5) + random.choice(limit_punctuation)
limit_punctuation = """-'_."""
group_name = randstring(2) + random.choice(limit_punctuation) + randstring(2)
data = {
'group_name': group_name,
@@ -83,8 +83,8 @@ class GroupsTest(BaseTestCase):
self.login_as(self.admin)
url = reverse('api-v2.1-admin-groups')
other_punctuation = """!"#$%&()*+,./:;<=>?@[\]^`{|}~"""
group_name = randstring(5) + random.choice(other_punctuation)
other_punctuation = """!"#$%&()*+,/:;<=>?@[\]^`{|}~"""
group_name = randstring(2) + random.choice(other_punctuation) + randstring(2)
data = {
'group_name': group_name,