mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
add is_dir_downloadable check when download folder (#4590)
Co-authored-by: lian <lian@seafile.com>
This commit is contained in:
@@ -27,6 +27,10 @@ class ZipTaskViewTest(BaseTestCase):
|
||||
self.remove_repo()
|
||||
|
||||
def test_can_get_download_dir_zip_token(self):
|
||||
|
||||
if not LOCAL_PRO_DEV_ENV:
|
||||
return
|
||||
|
||||
self.login_as(self.user)
|
||||
|
||||
parent_dir = '/'
|
||||
@@ -41,6 +45,9 @@ class ZipTaskViewTest(BaseTestCase):
|
||||
|
||||
def test_can_get_download_multi_zip_token(self):
|
||||
|
||||
if not LOCAL_PRO_DEV_ENV:
|
||||
return
|
||||
|
||||
# create another folder for download multi
|
||||
another_folder_name = 'another_folder_name'
|
||||
seafile_api.post_dir(repo_id=self.repo.id,
|
||||
@@ -61,6 +68,10 @@ class ZipTaskViewTest(BaseTestCase):
|
||||
assert len(json_resp['zip_token']) == 36
|
||||
|
||||
def test_can_get_zip_token_with_invalid_repo_permission(self):
|
||||
|
||||
if not LOCAL_PRO_DEV_ENV:
|
||||
return
|
||||
|
||||
self.login_as(self.admin)
|
||||
|
||||
parent_dir = '/'
|
||||
|
Reference in New Issue
Block a user