MCPcopy
hub / github.com/redis/redis-py / test_info_with_modules

Method test_info_with_modules

tests/test_commands.py:1111–1122  ·  view source on GitHub ↗
(self, r: redis.Redis)

Source from the content-addressed store, hash-verified

1109 @pytest.mark.redismod
1110 @skip_if_server_version_lt("7.9.0")
1111 def test_info_with_modules(self, r: redis.Redis):
1112 res = r.info(section="everything")
1113 assert "modules" in res
1114 assert "search_number_of_indexes" in res
1115
1116 res = r.info(section="modules")
1117 assert "modules" in res
1118 assert "search_number_of_indexes" in res
1119
1120 res = r.info(section="search")
1121 assert "modules" not in res
1122 assert "search_number_of_indexes" in res
1123
1124 @pytest.mark.onlynoncluster
1125 @skip_if_redis_enterprise()

Callers

nothing calls this directly

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected