From a699b69385b8781f8465316bf17eb35dfb1562d0 Mon Sep 17 00:00:00 2001 From: Neil Holloway Date: Fri, 4 Oct 2024 12:13:52 +0100 Subject: [PATCH] assert object is Document for linting --- libs/community/tests/unit_tests/vectorstores/test_faiss.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/community/tests/unit_tests/vectorstores/test_faiss.py b/libs/community/tests/unit_tests/vectorstores/test_faiss.py index 40d458007976a..a854ac3af5dff 100644 --- a/libs/community/tests/unit_tests/vectorstores/test_faiss.py +++ b/libs/community/tests/unit_tests/vectorstores/test_faiss.py @@ -813,6 +813,7 @@ def test_faiss_document_ids() -> None: vstore = FAISS.from_texts(texts, FakeEmbeddings(), ids=ids) for id_, text in (ids, texts): doc = vstore.docstore.search(id_) + assert isinstance(doc, Document) assert doc.id == id_ assert doc.page_content == text