Skip to content

Commit 933fd3f

Browse files
committed
Xfail test
1 parent 85be61a commit 933fd3f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

tests/index/test_index_search_meilisearch.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# pylint: disable=invalid-name
22

3+
import pytest
4+
35

46
def test_basic_search(index_with_documents):
57
"""Tests search with a simple query."""
@@ -456,12 +458,14 @@ def test_attributes_to_search_on_search_no_match(index_with_documents):
456458
)
457459
assert response["hits"] == []
458460

459-
# Commented because of https://github.com/meilisearch/meilisearch-python/issues/901
460-
# @pytest.mark.usefixtures("enable_vector_search")
461-
# def test_vector_search(index_with_documents_and_vectors):
462-
# response = index_with_documents_and_vectors().search(
463-
# "How to Train Your Dragon", opt_params={"vector": [0.1, 0.2]}
464-
# )
465461

466-
# assert response["hits"][0]["id"] == "287947"
467-
# assert response["vector"] == [0.1, 0.2]
462+
@pytest.mark.xfail(
463+
strict=True, reason="https://github.com/meilisearch/meilisearch-python/issues/901"
464+
)
465+
@pytest.mark.usefixtures("enable_vector_search")
466+
def test_vector_search(index_with_documents_and_vectors):
467+
response = index_with_documents_and_vectors().search(
468+
"How to Train Your Dragon", opt_params={"vector": [0.1, 0.2]}
469+
)
470+
assert response["hits"][0]["id"] == "287947"
471+
assert response["vector"] == [0.1, 0.2]

0 commit comments

Comments
 (0)