1
0
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:
zhengxie
2015-03-21 11:35:20 +08:00
committed by Daniel Pan
parent 51d1e0a420
commit bffa7b9c61

View File

@@ -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