From d8e433ae2be454dcb9d2d6743c2aba3bba4275c3 Mon Sep 17 00:00:00 2001 From: hp0404 Date: Fri, 16 Jun 2023 14:54:04 +0300 Subject: [PATCH] fixed the test --- tests/integration_tests/vectorstores/test_faiss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration_tests/vectorstores/test_faiss.py b/tests/integration_tests/vectorstores/test_faiss.py index dfeea9d12d145..d33e6d7827ee9 100644 --- a/tests/integration_tests/vectorstores/test_faiss.py +++ b/tests/integration_tests/vectorstores/test_faiss.py @@ -93,7 +93,7 @@ def test_faiss_with_metadatas_and_filter() -> None: ) assert docsearch.docstore.__dict__ == expected_docstore.__dict__ output = docsearch.similarity_search("foo", k=1, filter={"page": 1}) - assert output == [] + assert output == [Document(page_content="bar", metadata={"page": 1})] def test_faiss_search_not_found() -> None: