Skip to content

Commit

Permalink
rm unnecessary assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Dec 22, 2023
1 parent 053c0a8 commit a8bb599
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions integrations/pinecone/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@

class TestFilters(FilterDocumentsTest):
def assert_documents_are_equal(self, received: List[Document], expected: List[Document]):
"""
The PineconeDocumentStore.filter_documents() method returns a Documents with their score set.
We don't want to compare the score, so we set it to None before comparing the documents.
"""

for doc in received:
doc.score = None
# Pinecone seems to convert strings to datetime objects (undocumented behavior)
# We convert them back to strings to compare them
if "date" in doc.meta:
Expand Down

0 comments on commit a8bb599

Please sign in to comment.