summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-09-01 11:44:36 +0300
committerGitHub <noreply@github.com>2021-09-01 11:44:36 +0300
commit18c1cc7482d2177809d381e91721f119117849ff (patch)
tree5584e9dea19118bc927b35e174680e504fcfcfca /tests
parentde9922ad0fc955668d99748f3ad3be0ccff1f9da (diff)
downloadredis-py-18c1cc7482d2177809d381e91721f119117849ff.tar.gz
Support for command count (#1554)
Part of #1546
Diffstat (limited to 'tests')
-rw-r--r--tests/test_commands.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 2c0137f..5a5e8f3 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -3240,6 +3240,12 @@ class TestRedisCommands:
assert isinstance(r.module_list(), list)
assert not r.module_list()
+ @skip_if_server_version_lt('2.8.13')
+ def test_command_count(self, r):
+ res = r.command_count()
+ assert isinstance(res, int)
+ assert res >= 100
+
class TestBinarySave: