diff options
author | Roey Prat <roey.prat@redislabs.com> | 2020-07-05 17:25:15 +0300 |
---|---|---|
committer | Roey Prat <roey.prat@redislabs.com> | 2020-07-05 17:25:15 +0300 |
commit | dadfbbbf6602dff333f450ac34dd499b4ea748d1 (patch) | |
tree | ee34371d0d7dd2e6512edd0d7816d3a3ea8514c6 | |
parent | 7b4c8f6e93d3a76d416efb41025de81cd635634a (diff) | |
download | redis-py-roey-vamc19_modules.tar.gz |
unit test for module list - only the empty use caseroey-vamc19_modules
-rw-r--r-- | tests/test_commands.py | 5 |
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): |