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:22:38 +0300
committerGitHub <noreply@github.com>2022-04-27 16:22:38 +0300
commit2d8b90139710240d172e16f1a60b2cd847a0802c (patch)
tree521cb769859eecf1c74d94cdd5e07686457e2521 /tests/test_commands.py
parent2da2ac3368bc88ad909d78fe73029bc9c627545d (diff)
downloadredis-py-2d8b90139710240d172e16f1a60b2cd847a0802c.tar.gz
support get multi parameters (#2142)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index f83bb79..57182fc 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -669,6 +669,12 @@ class TestRedisCommands:
# # assert 'maxmemory' in data
# assert data['maxmemory'].isdigit()
+ @skip_if_server_version_lt("7.0.0")
+ def test_config_get_multi_params(self, r: redis.Redis):
+ res = r.config_get("*max-*-entries*", "maxmemory")
+ assert "maxmemory" in res
+ assert "hash-max-listpack-entries" in res
+
@pytest.mark.onlynoncluster
@skip_if_redis_enterprise()
def test_config_resetstat(self, r):