mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-26 15:49:42 +02:00
feat: Editor.read + large file check
This commit is contained in:
parent
b22d96dc58
commit
aa5b78a370
2 changed files with 22 additions and 1 deletions
|
|
@ -737,5 +737,13 @@ async def test_similarity_search(query, filename):
|
|||
save_to.unlink(missing_ok=True)
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
@pytest.mark.asyncio
|
||||
async def test_read():
|
||||
editor = Editor()
|
||||
content = await editor.read(str(TEST_DATA_PATH / "pdf/9112674.pdf"))
|
||||
assert "similarity_search" in content.block_content
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest.main([__file__, "-s"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue