mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
[tests] Fix grouprepo api test
This commit is contained in:
@@ -5,11 +5,11 @@ from tests.common.utils import apiurl
|
||||
|
||||
|
||||
class GroupRepoTest(ApiTestBase):
|
||||
def create_group_repo(self, group_id, *args, **kwargs):
|
||||
def create_group_repo(self, group_id, expected=None, *args, **kwargs):
|
||||
path = apiurl(reverse("api2-grouprepos", args=[group_id]))
|
||||
data = {"name": 'grepo-test'}
|
||||
data.update(kwargs)
|
||||
resp = self.post(path, data=data)
|
||||
resp = self.post(path, data=data, expected=expected)
|
||||
|
||||
return resp
|
||||
|
||||
|
Reference in New Issue
Block a user