Skip to content

Commit

Permalink
test: Fix the test_nin_filter_embedding() function (deepset-ai#5829)
Browse files Browse the repository at this point in the history
* Fix the test_nin_filter_embedding() function

* mypy: type: ignore[arg-type]
  • Loading branch information
cclauss authored Sep 16, 2023
1 parent 91ab90a commit 66b8b66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions haystack/preview/testing/document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,7 @@ def test_nin_filter_embedding(self, docstore: DocumentStore, filterable_docs: Li
[
doc
for doc in filterable_docs
or (
not np.array_equal(embedding_zeros, doc.embedding) # type: ignore
and not np.array_equal(embedding_ones, doc.embedding) # type: ignore
)
if not (np.array_equal(embedding_zeros, doc.embedding) or np.array_equal(embedding_ones, doc.embedding)) # type: ignore[arg-type]
],
)

Expand Down

0 comments on commit 66b8b66

Please sign in to comment.