summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_commands.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-05-03 14:04:14 +0300
committerGitHub <noreply@github.com>2022-05-03 14:04:14 +0300
commit5c99e27459a047cd1334e1b87fb0623ac2c881db (patch)
tree67434cb616fdcfa0dfaf852f42fba0934cf3a0fe /tests/test_asyncio/test_commands.py
parentfa7b3f6213625f248764b134ed2c82fcdba95d62 (diff)
downloadredis-py-5c99e27459a047cd1334e1b87fb0623ac2c881db.tar.gz
ACL SETUSER - add selectors and key based permissions (#2161)
* acl setuser * async tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
Diffstat (limited to 'tests/test_asyncio/test_commands.py')
-rw-r--r--tests/test_asyncio/test_commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_asyncio/test_commands.py b/tests/test_asyncio/test_commands.py
index 7822040..dee8755 100644
--- a/tests/test_asyncio/test_commands.py
+++ b/tests/test_asyncio/test_commands.py
@@ -109,6 +109,7 @@ class TestRedisCommands:
assert isinstance(password, str)
@skip_if_server_version_lt(REDIS_6_VERSION)
+ @skip_if_server_version_gte("7.0.0")
async def test_acl_getuser_setuser(self, r: redis.Redis, request, event_loop):
username = "redis-py-user"
@@ -224,6 +225,7 @@ class TestRedisCommands:
assert len((await r.acl_getuser(username))["passwords"]) == 1
@skip_if_server_version_lt(REDIS_6_VERSION)
+ @skip_if_server_version_gte("7.0.0")
async def test_acl_list(self, r: redis.Redis, request, event_loop):
username = "redis-py-user"