mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
15 lines
373 B
Python
15 lines
373 B
Python
|
from langchain.document_loaders.larksuite import LarkSuiteDocLoader
|
||
|
|
||
|
DOMAIN = ""
|
||
|
ACCESS_TOKEN = ""
|
||
|
DOCUMENT_ID = ""
|
||
|
|
||
|
|
||
|
def test_larksuite_doc_loader() -> None:
|
||
|
"""Test LarkSuite (FeiShu) document loader."""
|
||
|
loader = LarkSuiteDocLoader(DOMAIN, ACCESS_TOKEN, DOCUMENT_ID)
|
||
|
docs = loader.load()
|
||
|
|
||
|
assert len(docs) == 1
|
||
|
assert docs[0].page_content is not None
|