Skip to content

Commit 896449b

Browse files
committed
Added test for INFO section
1 parent 10affb9 commit 896449b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_search.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,6 @@ def test_summarize(client):
652652
q.summarize("txt")
653653

654654
if is_resp2_connection(client):
655-
print(client.ft().search(q).docs)
656655
doc = sorted(client.ft().search(q).docs)[0]
657656
assert "<b>Henry</b> IV" == doc.play
658657
assert (
@@ -2887,6 +2886,12 @@ def test_search_query_with_different_dialects(client):
28872886
assert res["total_results"] == 0
28882887

28892888

2889+
@pytest.mark.redismod
2890+
@skip_if_server_version_lt("7.9.0")
2891+
def test_info_exposes_search_info(client):
2892+
assert len(client.info("search")) > 0
2893+
2894+
28902895
def _assert_search_result(client, result, expected_doc_ids):
28912896
"""
28922897
Make sure the result of a geo search is as expected, taking into account the RESP

0 commit comments

Comments
 (0)