feat: Editor.read + large file check

This commit is contained in:
莘权 马 2024-09-13 20:32:16 +08:00
parent b22d96dc58
commit aa5b78a370
2 changed files with 22 additions and 1 deletions

View file

@ -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"])