summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-05-08 15:23:09 +0300
committerGitHub <noreply@github.com>2022-05-08 15:23:09 +0300
commit883fca7199a7ab7adc583b9ee324a9e44d0909eb (patch)
tree4a0fd3d4edd9373829502b6de22cb542f7462478 /tests/test_commands.py
parentfaf55b65ffb7294b1a639cc9adb0231b987b0e32 (diff)
downloadredis-py-883fca7199a7ab7adc583b9ee324a9e44d0909eb.tar.gz
Get command keys for subcommands (#2170)
* parse subcommands * fix tests
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 00eac17..d5ab4e3 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -1164,7 +1164,7 @@ class TestRedisCommands:
r.set("key", "val")
assert r.expire("key", 100, xx=True) == 0
assert r.expire("key", 100)
- assert r.expire("key", 500, nx=True) == 1
+ assert r.expire("key", 500, xx=True) == 1
@skip_if_server_version_lt("7.0.0")
def test_expire_option_gt(self, r):
@@ -3012,6 +3012,7 @@ class TestRedisCommands:
assert r.lrange("sorted", 0, 10) == [b"vodka", b"milk", b"gin", b"apple juice"]
@skip_if_server_version_lt("7.0.0")
+ @pytest.mark.onlynoncluster
def test_sort_ro(self, r):
r["score:1"] = 8
r["score:2"] = 3