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

Method test_acl_list

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

Source from the content-addressed store, hash-verified

309
310 @skip_if_server_version_lt(REDIS_6_VERSION)
311 async def test_acl_list(self, r_teardown):
312 username = "redis-py-user"
313 r = r_teardown(username)
314 start = await r.acl_list()
315 assert await r.acl_setuser(username, enabled=False, reset=True)
316 users = await r.acl_list()
317 assert len(users) == len(start) + 1
318
319 @skip_if_server_version_lt(REDIS_6_VERSION)
320 @pytest.mark.onlynoncluster

Callers

nothing calls this directly

Calls 3

r_teardownFunction · 0.85
acl_listMethod · 0.80
acl_setuserMethod · 0.80

Tested by

no test coverage detected