Skip to content

The agent engineering platform.

infra: fix breebs test lint (#17075)

Bagatur6e2ed9671f5e
diff --git a/libs/community/tests/integration_tests/retrievers/test_breebs.py b/libs/community/tests/integration_tests/retrievers/test_breebs.py
index c5c75fcdd3..1dd6b470a5 100644
--- a/libs/community/tests/integration_tests/retrievers/test_breebs.py
+++ b/libs/community/tests/integration_tests/retrievers/test_breebs.py
@@ -1,6 +1,5 @@
from typing import List
-from langchain_core.callbacks.manager import CallbackManagerForRetrieverRun
from langchain_core.documents import Document
from langchain_community.retrievers.breebs import BreebsRetriever
@@ -11,9 +10,7 @@ class TestBreebsRetriever:
breeb_key = "Parivoyage"
query = "What are the best churches to visit in Paris?"
breeb_retriever = BreebsRetriever(breeb_key)
- documents: List[Document] = breeb_retriever._get_relevant_documents(
- query, run_manager=CallbackManagerForRetrieverRun
- )
+ documents: List[Document] = breeb_retriever.get_relevant_documents(query)
assert isinstance(documents, list), "Documents should be a list"
for doc in documents:
assert doc.page_content, "Document page_content should not be None"