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

Method test_acl_genpass

tests/test_commands.py:269–280  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

267 @skip_if_server_version_lt("6.0.0")
268 @skip_if_redis_enterprise()
269 def test_acl_genpass(self, r):
270 password = r.acl_genpass()
271 assert isinstance(password, (str, bytes))
272
273 with pytest.raises(exceptions.DataError):
274 r.acl_genpass("value")
275 r.acl_genpass(-5)
276 r.acl_genpass(5555)
277
278 password = r.acl_genpass(555)
279 assert isinstance(password, (str, bytes))
280 assert len(password) == 139
281
282 @skip_if_server_version_lt("7.0.0")
283 @skip_if_redis_enterprise()

Callers

nothing calls this directly

Calls 1

acl_genpassMethod · 0.80

Tested by

no test coverage detected