mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
feat: upload_path
This commit is contained in:
parent
00cdbbb85c
commit
3d1691ae1e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue