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

add test for web-api use new seafile api

This commit is contained in:
lian
2016-01-27 18:05:29 +08:00
parent 3d09dd9953
commit 93f13e7358
5 changed files with 85 additions and 3 deletions

View File

@@ -51,3 +51,9 @@ class RepoTest(BaseTestCase):
assert len(FileShare.objects.all()) == 0
assert len(UploadLinkShare.objects.all()) == 0
def test_invalid_magic_argu(self):
self.login_as(self.user)
resp = self.client.post(reverse('api2-repo', args=[self.repo.id])+'?op=checkpassword&magic=123')
self.assertEqual(500, resp.status_code)