summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-12-22 11:52:25 +0200
committerGitHub <noreply@github.com>2021-12-22 11:52:25 +0200
commit989d06d0832c2cccdb5b74f1b2afab2b2441fc79 (patch)
treeaaf5c46b9fd86cec5f0f799d090c991f17275506 /tests/test_commands.py
parent139bcbb07e7bc45a4762c7bcb17f4e80235ef8f8 (diff)
downloadredis-py-989d06d0832c2cccdb5b74f1b2afab2b2441fc79.tar.gz
Support for RESET command since Redis 6.2.0 (#1824)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index f918043..0912161 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -669,6 +669,11 @@ class TestRedisCommands:
lolwut = r.lolwut(5, 6, 7, 8).decode("utf-8")
assert "Redis ver." in lolwut
+ @pytest.mark.onlynoncluster
+ @skip_if_server_version_lt("6.2.0")
+ def test_reset(self, r):
+ assert r.reset() == "RESET"
+
def test_object(self, r):
r["a"] = "foo"
assert isinstance(r.object("refcount", "a"), int)