Skip to content

Commit

Permalink
Xfail test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanders41 committed Jan 11, 2024
1 parent 85be61a commit 933fd3f
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tests/index/test_index_search_meilisearch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pylint: disable=invalid-name

import pytest


def test_basic_search(index_with_documents):
"""Tests search with a simple query."""
Expand Down Expand Up @@ -456,12 +458,14 @@ def test_attributes_to_search_on_search_no_match(index_with_documents):
)
assert response["hits"] == []

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

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

0 comments on commit 933fd3f

Please sign in to comment.