1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

update tests

This commit is contained in:
lian
2022-06-27 15:37:19 +08:00
parent 4309485bf5
commit 5545bd648f
5 changed files with 20 additions and 8 deletions

View File

@@ -31,7 +31,9 @@ class RepoCommitRevertTest(BaseTestCase):
def test_post(self):
# delete a file first
seafile_api.del_file(self.repo_id, '/', self.file_name, self.user_name)
seafile_api.del_file(self.repo_id, '/',
json.dumps([self.file_name]),
self.user_name)
self.login_as(self.user)
@@ -71,7 +73,9 @@ class RepoCommitRevertTest(BaseTestCase):
def test_enc_repo_post(self):
# delete a file first
seafile_api.del_file(self.enc_repo_id, '/', self.file_name, self.user_name)
seafile_api.del_file(self.enc_repo_id, '/',
json.dumps([self.file_name]),
self.user_name)
self.login_as(self.user)