1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-03 16:34:33 +00:00

Add search repos by name rpc.

This commit is contained in:
ly1217
2019-11-17 21:21:28 -08:00
parent 6a428da6d6
commit 1dd89b1b7c
8 changed files with 94 additions and 0 deletions

View File

@@ -91,6 +91,14 @@ def test_repo_manipulation():
t_commit_list = api.get_commit_list(t_repo_id, t_offset, t_limit)
assert t_commit_list and len(t_commit_list) == 1
#test search_repos_by_name
t_repo_list = api.search_repos_by_name (t_repo.name)
assert len (t_repo_list) == 1 and t_repo_list[0].id == t_repo_id
t_repo_list = api.search_repos_by_name (t_repo.name.upper())
assert len (t_repo_list) == 1 and t_repo_list[0].id == t_repo_id
t_repo_list = api.search_repos_by_name (t_repo.name.lower())
assert len (t_repo_list) == 1 and t_repo_list[0].id == t_repo_id
#test remove_repo
api.remove_repo(t_repo_id)
t_repo = api.get_repo(t_repo_id)