Skip to content

Commit bda5864

Browse files
committed
fix tests
1 parent 6281ae2 commit bda5864

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

redis/cluster.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ class RedisCluster(RedisClusterCommands):
223223
[
224224
"ACL CAT",
225225
"ACL DELUSER",
226+
"ACL DRYRUN",
226227
"ACL GENPASS",
227228
"ACL GETUSER",
228229
"ACL HELP",

tests/test_cluster.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,6 @@ def test_cluster_links(self, r):
10981098
links_to = sum(x.count("to") for x in res)
10991099
links_for = sum(x.count("from") for x in res)
11001100
assert links_to == links_for
1101-
print(res)
11021101
for i in range(0, len(res) - 1, 2):
11031102
assert res[i][3] == res[i + 1][3]
11041103

tests/test_commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ def test_expire_option_xx(self, r):
11641164
r.set("key", "val")
11651165
assert r.expire("key", 100, xx=True) == 0
11661166
assert r.expire("key", 100)
1167-
assert r.expire("key", 500, nx=True) == 1
1167+
assert r.expire("key", 500, xx=True) == 1
11681168

11691169
@skip_if_server_version_lt("7.0.0")
11701170
def test_expire_option_gt(self, r):
@@ -3012,6 +3012,7 @@ def test_sort_all_options(self, r):
30123012
assert r.lrange("sorted", 0, 10) == [b"vodka", b"milk", b"gin", b"apple juice"]
30133013

30143014
@skip_if_server_version_lt("7.0.0")
3015+
@pytest.mark.onlynoncluster
30153016
def test_sort_ro(self, r):
30163017
r["score:1"] = 8
30173018
r["score:2"] = 3

0 commit comments

Comments
 (0)