Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

feat: upload_path

莘权 马3d1691ae1eb5
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