We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1b8163 commit 7ddb747Copy full SHA for 7ddb747
tests/test_commands.py
@@ -1066,6 +1066,21 @@ def test_info_multi_sections(self, r):
1066
assert "redis_version" in res
1067
assert "connected_clients" in res
1068
1069
+ @pytest.mark.redismod
1070
+ @skip_if_server_version_lt("7.9.0")
1071
+ def test_info_with_modules(self, r: redis.Redis):
1072
+ res = r.info(section="everything")
1073
+ assert "modules" in res
1074
+ assert "search_number_of_indexes" in res
1075
+
1076
+ res = r.info(section="modules")
1077
1078
1079
1080
+ res = r.info(section="search")
1081
+ assert "modules" not in res
1082
1083
1084
@pytest.mark.onlynoncluster
1085
@skip_if_redis_enterprise()
1086
def test_lastsave(self, r):
0 commit comments