From 3d1691ae1eb57b1e42857a2b0bb722459222a495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Thu, 12 Sep 2024 13:42:59 +0800 Subject: [PATCH] feat: upload_path --- tests/metagpt/tools/libs/test_editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/metagpt/tools/libs/test_editor.py b/tests/metagpt/tools/libs/test_editor.py index 942eb4b57..6dbd6f274 100644 --- a/tests/metagpt/tools/libs/test_editor.py +++ b/tests/metagpt/tools/libs/test_editor.py @@ -689,12 +689,12 @@ async def mock_index_repo(): @pytest.mark.asyncio async def test_index_repo(): # mock data - chat_path, UPLOAD_ROOT, src_path = await mock_index_repo() + chat_path, upload_path, src_path = await mock_index_repo() editor = Editor() rsp = await editor.similarity_search(query="业务线", file_or_path=chat_path) assert rsp - rsp = await editor.similarity_search(query="业务线", file_or_path=UPLOAD_ROOT) + rsp = await editor.similarity_search(query="业务线", file_or_path=upload_path) assert rsp rsp = await editor.similarity_search(query="业务线", file_or_path=src_path) assert rsp