summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-04-27 16:23:43 +0300
committerGitHub <noreply@github.com>2022-04-27 16:23:43 +0300
commita696fe5e3155238fd8e9ec65224f94f6f25bb72b (patch)
tree52646f61c9536fc2581d04e69376fae9dac05e75 /tests/test_commands.py
parentc198612a3ed67d78d7964b0253e96b3fa1d7d707 (diff)
downloadredis-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.py8
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)