diff options
Diffstat (limited to 'tests/test_cluster.py')
-rw-r--r-- | tests/test_cluster.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cluster.py b/tests/test_cluster.py index 43aeb9e..e45780d 100644 --- a/tests/test_cluster.py +++ b/tests/test_cluster.py @@ -176,7 +176,7 @@ def moved_redirection_helper(request, failover=False): prev_primary = rc.nodes_manager.get_node_from_slot(slot) if failover: if len(rc.nodes_manager.slots_cache[slot]) < 2: - warnings.warn("Skipping this test since it requires to have a " "replica") + warnings.warn("Skipping this test since it requires to have a replica") return redirect_node = rc.nodes_manager.slots_cache[slot][1] else: @@ -244,7 +244,7 @@ class TestRedisClusterObj: RedisCluster(startup_nodes=[]) assert str(ex.value).startswith( - "RedisCluster requires at least one node to discover the " "cluster" + "RedisCluster requires at least one node to discover the cluster" ), str_if_bytes(ex.value) def test_from_url(self, r): @@ -265,7 +265,7 @@ class TestRedisClusterObj: with pytest.raises(RedisClusterException) as ex: r.execute_command("GET") assert str(ex.value).startswith( - "No way to dispatch this command to " "Redis Cluster. Missing key." + "No way to dispatch this command to Redis Cluster. Missing key." ) def test_execute_command_node_flag_primaries(self, r): @@ -2789,7 +2789,7 @@ class TestClusterPipeline: ask_node = node break if ask_node is None: - warnings.warn("skipping this test since the cluster has only one " "node") + warnings.warn("skipping this test since the cluster has only one node") return ask_msg = f"{r.keyslot(key)} {ask_node.host}:{ask_node.port}" |