summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_cluster.py
diff options
context:
space:
mode:
authorDavid Gilman <dgilman@aidentified.com>2022-12-14 04:18:41 -0500
committerGitHub <noreply@github.com>2022-12-14 11:18:41 +0200
commit3fb65de645bf4dd1beb8e893bdaa2c4766bbd1fa (patch)
treed5074882a70d502c91122f252788f27f1670901e /tests/test_asyncio/test_cluster.py
parent6487f9555ba2d08083a081df9b65b642427361fa (diff)
downloadredis-py-3fb65de645bf4dd1beb8e893bdaa2c4766bbd1fa.tar.gz
Combine auto-concatenated strings (#2482)
Diffstat (limited to 'tests/test_asyncio/test_cluster.py')
-rw-r--r--tests/test_asyncio/test_cluster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_asyncio/test_cluster.py b/tests/test_asyncio/test_cluster.py
index 1997c95..13e5e26 100644
--- a/tests/test_asyncio/test_cluster.py
+++ b/tests/test_asyncio/test_cluster.py
@@ -171,7 +171,7 @@ async def moved_redirection_helper(
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:
@@ -327,7 +327,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)
async def test_from_url(self, request: FixtureRequest) -> None:
@@ -371,7 +371,7 @@ class TestRedisClusterObj:
with pytest.raises(RedisClusterException) as ex:
await 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."
)
async def test_execute_command_node_flag_primaries(self, r: RedisCluster) -> None: