mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
13 lines
339 B
Python
13 lines
339 B
Python
|
from pathlib import Path
|
||
|
|
||
|
from langchain.document_loaders import UnstructuredODTLoader
|
||
|
|
||
|
|
||
|
def test_unstructured_odt_loader() -> None:
|
||
|
"""Test unstructured loader."""
|
||
|
file_path = Path(__file__).parent.parent / "examples/fake.odt"
|
||
|
loader = UnstructuredODTLoader(str(file_path))
|
||
|
docs = loader.load()
|
||
|
|
||
|
assert len(docs) == 1
|