Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix the test_nin_filter_embedding() function #5829

Merged
merged 2 commits into from
Sep 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix the test_nin_filter_embedding() function
  • Loading branch information
cclauss committed Sep 15, 2023
commit 60392cb3931f2fc82290cbc05d0cbe3388611e3e
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))
],
)

Expand Down
Loading