From c198612a3ed67d78d7964b0253e96b3fa1d7d707 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 27 Apr 2022 16:23:11 +0300 Subject: support set multi parameters (#2143) --- tests/test_commands.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/test_commands.py') diff --git a/tests/test_commands.py b/tests/test_commands.py index 57182fc..aa29e6f 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -692,6 +692,16 @@ class TestRedisCommands: assert r.config_set("timeout", 0) assert r.config_get()["timeout"] == "0" + @skip_if_server_version_lt("7.0.0") + @skip_if_redis_enterprise() + def test_config_set_multi_params(self, r: redis.Redis): + r.config_set("timeout", 70, "maxmemory", 100) + assert r.config_get()["timeout"] == "70" + assert r.config_get()["maxmemory"] == "100" + assert r.config_set("timeout", 0, "maxmemory", 0) + assert r.config_get()["timeout"] == "0" + assert r.config_get()["maxmemory"] == "0" + @skip_if_server_version_lt("6.0.0") @skip_if_redis_enterprise() def test_failover(self, r): -- cgit v1.2.1