diff options
author | David Gilman <dgilman@aidentified.com> | 2022-12-14 04:18:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-14 11:18:41 +0200 |
commit | 3fb65de645bf4dd1beb8e893bdaa2c4766bbd1fa (patch) | |
tree | d5074882a70d502c91122f252788f27f1670901e /tests/test_cluster.py | |
parent | 6487f9555ba2d08083a081df9b65b642427361fa (diff) | |
download | redis-py-3fb65de645bf4dd1beb8e893bdaa2c4766bbd1fa.tar.gz |
Combine auto-concatenated strings (#2482)
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}" |