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

Method test_command_list

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

Source from the content-addressed store, hash-verified

8074 @skip_if_server_version_lt("7.0.0")
8075 @skip_if_redis_enterprise()
8076 def test_command_list(self, r: redis.Redis):
8077 assert len(r.command_list()) > 300
8078 assert len(r.command_list(module="fakemod")) == 0
8079 assert len(r.command_list(category="list")) > 15
8080 assert b"lpop" in r.command_list(pattern="l*")
8081 with pytest.raises(redis.ResponseError):
8082 r.command_list(category="list", pattern="l*")
8083
8084 @pytest.mark.onlynoncluster
8085 @skip_if_server_version_lt("2.8.13")

Callers

nothing calls this directly

Calls 1

command_listMethod · 0.80

Tested by

no test coverage detected