diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-09-01 11:44:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 11:44:36 +0300 |
commit | 18c1cc7482d2177809d381e91721f119117849ff (patch) | |
tree | 5584e9dea19118bc927b35e174680e504fcfcfca /tests | |
parent | de9922ad0fc955668d99748f3ad3be0ccff1f9da (diff) | |
download | redis-py-18c1cc7482d2177809d381e91721f119117849ff.tar.gz |
Support for command count (#1554)
Part of #1546
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_commands.py | 6 |
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: |