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

update parameter and tests

This commit is contained in:
lian
2017-08-04 15:01:55 +08:00
parent e15f6c6737
commit 45f0d9cd9a
2 changed files with 10 additions and 8 deletions

View File

@@ -247,7 +247,7 @@ class ReposBatchCopyDirView(BaseTestCase):
data = {
"src_repo_id": self.repo_id,
"dst_repo_id": tmp_repo_id,
"path": [
"paths": [
{"src_path": src_folder_1, "dst_path": dst_folder_1},
{"src_path": src_folder_2, "dst_path": dst_folder_2},
]
@@ -285,7 +285,7 @@ class ReposBatchCopyDirView(BaseTestCase):
data = {
"src_repo_id": self.repo_id,
"dst_repo_id": tmp_repo_id,
"path": [
"paths": [
{"src_path": '/', "dst_path": '/'},
{"src_path": '/', "dst_path": '/'},
]
@@ -308,7 +308,7 @@ class ReposBatchCopyDirView(BaseTestCase):
data = {
"src_repo_id": self.repo_id,
"dst_repo_id": tmp_repo_id,
"path": [
"paths": [
{"src_path": '/', "dst_path": '/'},
]
}
@@ -323,3 +323,5 @@ class ReposBatchCopyDirView(BaseTestCase):
assert json_resp['failed'][0]['error_msg'] == \
"The source path can not be '/'."
self.remove_repo(tmp_repo_id)