From 9b922d686d245a6b6ee0b9eb87139edf821f8a02 Mon Sep 17 00:00:00 2001 From: Stefano Fiorucci Date: Tue, 2 Apr 2024 14:57:14 +0200 Subject: [PATCH] Pinecone: skip `test_write_documents_duplicate_overwrite` test (#637) * skip test_write_documents_duplicate_overwrite * rm unused imports * use xfail --- integrations/pinecone/tests/test_document_store.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integrations/pinecone/tests/test_document_store.py b/integrations/pinecone/tests/test_document_store.py index 96c5ef25d..6fac67049 100644 --- a/integrations/pinecone/tests/test_document_store.py +++ b/integrations/pinecone/tests/test_document_store.py @@ -108,6 +108,11 @@ def test_write_documents(self, document_store: PineconeDocumentStore): docs = [Document(id="1")] assert document_store.write_documents(docs) == 1 + @pytest.mark.xfail( + run=True, reason="Pinecone supports overwriting by default, but it takes a while for it to take effect" + ) + def test_write_documents_duplicate_overwrite(self, document_store: PineconeDocumentStore): ... + @pytest.mark.skip(reason="Pinecone only supports UPSERT operations") def test_write_documents_duplicate_fail(self, document_store: PineconeDocumentStore): ...