summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoey Prat <roey.prat@redislabs.com>2020-07-05 17:25:15 +0300
committerRoey Prat <roey.prat@redislabs.com>2020-07-05 17:25:15 +0300
commitdadfbbbf6602dff333f450ac34dd499b4ea748d1 (patch)
treeee34371d0d7dd2e6512edd0d7816d3a3ea8514c6
parent7b4c8f6e93d3a76d416efb41025de81cd635634a (diff)
downloadredis-py-roey-vamc19_modules.tar.gz
unit test for module list - only the empty use caseroey-vamc19_modules
-rw-r--r--tests/test_commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 65e877c..adaa9fc 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -2629,6 +2629,11 @@ class TestRedisCommands(object):
r.set('foo', 'bar')
assert isinstance(r.memory_usage('foo'), int)
+ @skip_if_server_version_lt('4.0.0')
+ def test_module_list(self, r):
+ assert isinstance(r.module_list(), list)
+ assert not r.module_list()
+
class TestBinarySave(object):