summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authorAvital Fine <79420960+AvitalFineRedis@users.noreply.github.com>2021-11-25 13:18:25 +0100
committerGitHub <noreply@github.com>2021-11-25 14:18:25 +0200
commit8991370332e818cf9886cec6adc1858189b04bd6 (patch)
tree1ae6c2c654941a92ea8e841bc1fefc114b5c19c4 /tests/test_commands.py
parente5786c218d0b2ac11f2f13be55f5c70c09d247fb (diff)
downloadredis-py-8991370332e818cf9886cec6adc1858189b04bd6.tar.gz
COMMAND GETKEYS support (#1738)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 780a1bf..b4d371a 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -3797,6 +3797,15 @@ class TestRedisCommands:
assert res >= 100
@skip_if_server_version_lt('2.8.13')
+ def test_command_getkeys(self, r):
+ res = r.command_getkeys('MSET', 'a', 'b', 'c', 'd', 'e', 'f')
+ assert res == [b'a', b'c', b'e']
+ res = r.command_getkeys('EVAL', '"not consulted"',
+ '3', 'key1', 'key2', 'key3',
+ 'arg1', 'arg2', 'arg3', 'argN')
+ assert res == [b'key1', b'key2', b'key3']
+
+ @skip_if_server_version_lt('2.8.13')
def test_command(self, r):
res = r.command()
assert len(res) >= 100