mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
12 lines
325 B
Python
12 lines
325 B
Python
|
from langchain.document_loaders.joplin import JoplinLoader
|
||
|
|
||
|
|
||
|
def test_joplin_loader() -> None:
|
||
|
loader = JoplinLoader()
|
||
|
docs = loader.load()
|
||
|
|
||
|
assert type(docs) is list
|
||
|
assert type(docs[0].page_content) is str
|
||
|
assert type(docs[0].metadata["source"]) is str
|
||
|
assert type(docs[0].metadata["title"]) is str
|