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

Method test_acl_deluser

tests/test_asyncio/test_commands.py:197–203  ·  view source on GitHub ↗
(self, r_teardown)

Source from the content-addressed store, hash-verified

195
196 @skip_if_server_version_lt(REDIS_6_VERSION)
197 async def test_acl_deluser(self, r_teardown):
198 username = "redis-py-user"
199 r = r_teardown(username)
200
201 assert await r.acl_deluser(username) == 0
202 assert await r.acl_setuser(username, enabled=False, reset=True)
203 assert await r.acl_deluser(username) == 1
204
205 @skip_if_server_version_lt(REDIS_6_VERSION)
206 async def test_acl_genpass(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 3

r_teardownFunction · 0.85
acl_deluserMethod · 0.80
acl_setuserMethod · 0.80

Tested by

no test coverage detected