1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

update test of admin delete public repo

This commit is contained in:
lian
2018-12-20 17:21:05 +08:00
parent 7bfcd10994
commit 2a45250276

View File

@@ -356,7 +356,7 @@ class SharedReposTest(BaseTestCase):
self.assertEqual(403, resp.status_code)
def test_delete_perm_if_not_owner(self):
def test_admin_delete_perm(self):
self.share_repo_to_user()
# admin can view repo but NOT owner
@@ -369,4 +369,4 @@ class SharedReposTest(BaseTestCase):
url = reverse('api-v2.1-shared-repo', args=[self.repo_id]) + args
resp = self.client.delete(url, {}, 'application/x-www-form-urlencoded')
self.assertEqual(403, resp.status_code)
self.assertEqual(200, resp.status_code)