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

add amdin system library upload api

This commit is contained in:
lian
2017-07-03 14:42:12 +08:00
parent 101a2015ba
commit 46a5473326
9 changed files with 139 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import json
from tests.common.utils import randstring
from tests.common.utils import randstring, upload_file_test
from django.core.urlresolvers import reverse
from seahub.test_utils import BaseTestCase
from seahub.share.models import UploadLinkShare
@@ -97,6 +97,9 @@ class AdminUploadLinkUploadTest(BaseTestCase):
assert '8082' in json_resp['upload_link']
assert 'upload' in json_resp['upload_link']
# test upload file via `upload_link`
upload_file_test(json_resp['upload_link'])
self._remove_upload_link(token)
def test_upload_with_invalid_permission(self):