1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-24 20:48:01 +00:00

Add username to testcase

This commit is contained in:
杨赫然
2024-07-04 10:02:15 +08:00
parent d5ba518e79
commit fc294e7ec7
11 changed files with 72 additions and 70 deletions

View File

@@ -1,5 +1,5 @@
import pytest
from tests.config import USER, USER2
from tests.config import USER, USER2, USERNAME
from seaserv import seafile_api as api
def get_repo_list_order_by(t_start, t_limit, order_by):
@@ -39,10 +39,10 @@ def test_repo_manipulation():
#test revert_repo and get_commit
t_commit_id_before_changing = t_repo.head_cmmt_id
api.post_dir(t_repo_id, '/', 'dir1', USER)
api.post_dir(t_repo_id, '/', 'dir1', USER, USERNAME)
t_repo = api.get_repo(t_repo_id)
api.revert_repo(t_repo_id, t_commit_id_before_changing, USER)
api.revert_repo(t_repo_id, t_commit_id_before_changing, USER, USERNAME)
t_repo = api.get_repo(t_repo_id)
t_commit_id_after_revert = t_repo.head_cmmt_id