mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
13 lines
413 B
Python
13 lines
413 B
Python
|
from langchain.document_loaders.github import GitHubIssuesLoader
|
||
|
|
||
|
|
||
|
def test_issues_load() -> None:
|
||
|
title = "DocumentLoader for GitHub"
|
||
|
loader = GitHubIssuesLoader(
|
||
|
repo="hwchase17/langchain", creator="UmerHA", state="all"
|
||
|
)
|
||
|
docs = loader.load()
|
||
|
titles = [d.metadata["title"] for d in docs]
|
||
|
assert title in titles
|
||
|
assert all(doc.metadata["creator"] == "UmerHA" for doc in docs)
|