diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-11-14 13:09:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-14 13:09:43 +0200 |
commit | 19819e08211cc12f85c45294ad6209b2d5626337 (patch) | |
tree | 5aa18d6303a6ba43ccfebac17df77c33ffe8ee92 /tests/test_commands.py | |
parent | 5b72987e80a7765ce6e464232a7f1519243d0a73 (diff) | |
download | redis-py-19819e08211cc12f85c45294ad6209b2d5626337.tar.gz |
Unit tests fixes for compatibility (#1703)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 8 |
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): |