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