Skip to content

Commit dd11f2a

Browse files
committed
Fix missing hybrid search test
1 parent 4ee4da7 commit dd11f2a

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

tests/integration/test_hybrid.py

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -492,25 +492,10 @@ def test_hybrid_search_not_available_in_server(index):
492492
REDIS_HYBRID_AVAILABLE, reason="Requires hybrid search to NOT be available"
493493
)
494494
def test_hybrid_query_not_available(index):
495-
hybrid_query = HybridQuery(
496-
text="a medical professional with expertise in lung cancer",
497-
text_field_name="description",
498-
yield_text_score_as="text_score",
499-
vector=[0.1, 0.1, 0.5],
500-
vector_field_name="user_embedding",
501-
yield_vsim_score_as="vsim_score",
502-
combination_method="RRF",
503-
yield_combined_score_as="hybrid_score",
504-
return_fields=["user", "credit_score", "age", "job", "location", "description"],
505-
)
506-
507-
with pytest.raises(ImportError):
508-
index.query(hybrid_query)
509-
510-
511-
@pytest.mark.skipif(
512-
REDIS_HYBRID_AVAILABLE, reason="Requires hybrid search to NOT be available"
513-
)
514-
def test_hybrid_search_method_missing(index):
515495
with pytest.raises(ImportError):
516-
index.query(None)
496+
HybridQuery(
497+
text="a medical professional with expertise in lung cancer",
498+
text_field_name="description",
499+
vector=[0.1, 0.1, 0.5],
500+
vector_field_name="user_embedding",
501+
)

0 commit comments

Comments
 (0)