Skip to content

Commit

Permalink
assert object is Document for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nhols committed Oct 4, 2024
1 parent 9e7c4df commit a699b69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/community/tests/unit_tests/vectorstores/test_faiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a699b69

Please sign in to comment.