diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-04-27 16:23:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 16:23:43 +0300 |
commit | a696fe5e3155238fd8e9ec65224f94f6f25bb72b (patch) | |
tree | 52646f61c9536fc2581d04e69376fae9dac05e75 /tests/test_commands.py | |
parent | c198612a3ed67d78d7964b0253e96b3fa1d7d707 (diff) | |
download | redis-py-a696fe5e3155238fd8e9ec65224f94f6f25bb72b.tar.gz |
INFO - add support for taking multiple section arguments (#2145)
* add support for taking multiple section arguments
* skip test
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index aa29e6f..05a90f2 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -728,6 +728,14 @@ class TestRedisCommands: assert "redis_version" in info.keys() @pytest.mark.onlynoncluster + @skip_if_server_version_lt("7.0.0") + def test_info_multi_sections(self, r): + res = r.info("clients", "server") + assert isinstance(res, dict) + assert "redis_version" in res + assert "connected_clients" in res + + @pytest.mark.onlynoncluster @skip_if_redis_enterprise() def test_lastsave(self, r): assert isinstance(r.lastsave(), datetime.datetime) |