summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-11-14 13:09:43 +0200
committerGitHub <noreply@github.com>2021-11-14 13:09:43 +0200
commit19819e08211cc12f85c45294ad6209b2d5626337 (patch)
tree5aa18d6303a6ba43ccfebac17df77c33ffe8ee92 /tests/test_commands.py
parent5b72987e80a7765ce6e464232a7f1519243d0a73 (diff)
downloadredis-py-19819e08211cc12f85c45294ad6209b2d5626337.tar.gz
Unit tests fixes for compatibility (#1703)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 6cb1a78..dbd0442 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -3671,6 +3671,14 @@ class TestRedisCommands:
assert isinstance(res, int)
assert res >= 100
+ @skip_if_server_version_lt('2.8.13')
+ def test_command(self, r):
+ res = r.command()
+ assert len(res) >= 100
+ cmds = [c[0].decode() for c in res]
+ assert 'set' in cmds
+ assert 'get' in cmds
+
@skip_if_server_version_lt('4.0.0')
@skip_if_redis_enterprise
def test_module(self, r):