Skip to content

Commit ae531b0

Browse files
committed
Removing commented test code.
1 parent dcea8e3 commit ae531b0

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

tests/test_asyncio/test_search.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,30 +2736,6 @@ async def test_hybrid_search_query_with_combine(self, decoded_r):
27362736
assert res["warnings"] == []
27372737
assert res["execution_time"] > 0
27382738

2739-
# # LINEAR combine with no params
2740-
# posprocessing_config.combine("LINEAR", ALPHA=0.5)
2741-
# res = client.ft().hybrid_search(
2742-
# query=hybrid_query, post_processing=posprocessing_config, timeout=10
2743-
# )
2744-
2745-
# expected_results = [
2746-
# {"__key": b"item:2", "__score": b"0.166666666667"},
2747-
# {"__key": b"item:7", "__score": b"0.166666666667"},
2748-
# {"__key": b"item:12", "__score": b"0.166666666667"},
2749-
# ]
2750-
# if is_resp2_connection(client):
2751-
# assert res.total_results >= 3
2752-
# assert len(res.results) == 3
2753-
# assert res.results == expected_results
2754-
# assert res.warnings == []
2755-
# assert res.execution_time > 0
2756-
# else:
2757-
# assert res["total_results"] >= 3
2758-
# assert len(res["results"]) == 3
2759-
# assert res["results"] == self._convert_dict_values_to_str(expected_results)
2760-
# assert res["warnings"] == []
2761-
# assert res["execution_time"] > 0
2762-
27632739
# combine with RRF, not all possible params provided
27642740
posprocessing_config.combine("RRF", WINDOW=3)
27652741
res = await decoded_r.ft().hybrid_search(

tests/test_search.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4688,30 +4688,6 @@ def test_hybrid_search_query_with_combine(self, client):
46884688
assert res["warnings"] == []
46894689
assert res["execution_time"] > 0
46904690

4691-
# # LINEAR combine with no params
4692-
# posprocessing_config.combine("LINEAR", ALPHA=0.5)
4693-
# res = client.ft().hybrid_search(
4694-
# query=hybrid_query, post_processing=posprocessing_config, timeout=10
4695-
# )
4696-
4697-
# expected_results = [
4698-
# {"__key": b"item:2", "__score": b"0.166666666667"},
4699-
# {"__key": b"item:7", "__score": b"0.166666666667"},
4700-
# {"__key": b"item:12", "__score": b"0.166666666667"},
4701-
# ]
4702-
# if is_resp2_connection(client):
4703-
# assert res.total_results >= 3
4704-
# assert len(res.results) == 3
4705-
# assert res.results == expected_results
4706-
# assert res.warnings == []
4707-
# assert res.execution_time > 0
4708-
# else:
4709-
# assert res["total_results"] >= 3
4710-
# assert len(res["results"]) == 3
4711-
# assert res["results"] == self._convert_dict_values_to_str(expected_results)
4712-
# assert res["warnings"] == []
4713-
# assert res["execution_time"] > 0
4714-
47154691
# combine with RRF, not all possible params provided
47164692
posprocessing_config.combine("RRF", WINDOW=3)
47174693
res = client.ft().hybrid_search(

0 commit comments

Comments
 (0)