mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
优化 Agent 代码编辑工具 (#6218)
This commit is contained in:
@@ -49,7 +49,12 @@ def test_non_admin_manager_exposes_restricted_file_tools():
|
||||
manager = MoviePilotToolsManager(is_admin=False)
|
||||
|
||||
tool_names = {tool.name for tool in manager.list_tools()}
|
||||
assert {"read_file", "write_file", "edit_file", "list_directory"} <= tool_names
|
||||
assert {
|
||||
"read_file",
|
||||
"write_file",
|
||||
"edit_file",
|
||||
"list_directory",
|
||||
} <= tool_names
|
||||
|
||||
|
||||
def test_non_admin_manager_hides_admin_only_send_local_file_tool():
|
||||
|
||||
Reference in New Issue
Block a user