diff options
author | Roey Prat <roey.prat@redislabs.com> | 2020-07-13 19:41:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 19:41:29 +0300 |
commit | cec8e77b510eae7720cdf7258deb0a0085a9af12 (patch) | |
tree | 172717a4f504e13d4990e4faf9819ee80640679d /tests/test_commands.py | |
parent | 10fb0c5814709fd6dca1fc666fbfd8b172fb08bc (diff) | |
download | redis-py-cec8e77b510eae7720cdf7258deb0a0085a9af12.tar.gz |
Support for loading, unloading and listing Redis Modules (#1360)
* Support for loading, unloading and listing Redis Modules
* minor fixes for flake
* unit test for module list - only the empty use case
* ModuleError should inherit from ResponseError rather than RedisError
Co-authored-by: Vamsi Atluri <vamc19@gmail.com>
Diffstat (limited to 'tests/test_commands.py')
-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): |