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:11 +0300
committerGitHub <noreply@github.com>2022-04-27 16:23:11 +0300
commitc198612a3ed67d78d7964b0253e96b3fa1d7d707 (patch)
tree0fbfafd49aac60221a4b1adc0d76917dcf24fb57 /tests/test_commands.py
parent2d8b90139710240d172e16f1a60b2cd847a0802c (diff)
downloadredis-py-c198612a3ed67d78d7964b0253e96b3fa1d7d707.tar.gz
support set multi parameters (#2143)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py10
1 files changed, 10 insertions, 0 deletions
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):