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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user