Skip to content

Commit c87bcfc

Browse files
committed
Skip hybrid search tests that require embedder configuration
Add pytest.mark.skip decorators to tests that require a Meilisearch instance with embedders configured. These tests validate the API structure but cannot run without proper embedder setup.
1 parent 224dd50 commit c87bcfc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_mcp_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ async def test_search_tool_has_hybrid_parameters(self, mcp_server):
648648
assert "retrieveVectors" in properties
649649
assert properties["retrieveVectors"]["type"] == "boolean"
650650

651+
@pytest.mark.skip(reason="Requires Meilisearch instance with embedders configured")
651652
async def test_search_with_hybrid_parameters(self, mcp_server):
652653
"""Test that search accepts and processes hybrid search parameters"""
653654
# Create test index
@@ -694,6 +695,7 @@ async def test_search_with_hybrid_parameters(self, mcp_server):
694695
# Cleanup
695696
await simulate_mcp_call(mcp_server, "delete-index", {"uid": index_name})
696697

698+
@pytest.mark.skip(reason="Requires Meilisearch instance with embedders configured")
697699
async def test_search_with_vector_parameter(self, mcp_server):
698700
"""Test that search accepts vector parameter"""
699701
# Create test index
@@ -727,6 +729,7 @@ async def test_search_with_vector_parameter(self, mcp_server):
727729
# Cleanup
728730
await simulate_mcp_call(mcp_server, "delete-index", {"uid": index_name})
729731

732+
@pytest.mark.skip(reason="Requires Meilisearch instance with embedders configured")
730733
async def test_search_semantic_only(self, mcp_server):
731734
"""Test semantic-only search with semanticRatio=1.0"""
732735
# Create test index

0 commit comments

Comments
 (0)