diff options
author | rapidia <rapidia@users.noreply.github.com> | 2022-05-30 19:19:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 13:19:19 +0300 |
commit | 0d3da4e1bb3660285694b27c19c8d2498f0d42e7 (patch) | |
tree | 03db3d1ea6a0993b4ff83224682b2b16259ff39b /tests/test_asyncio/test_cluster.py | |
parent | 9167a0e10d5acd9d76edd887300c75cfeb07a7c3 (diff) | |
download | redis-py-0d3da4e1bb3660285694b27c19c8d2498f0d42e7.tar.gz |
set default response_callbacks to redis.asyncio.cluster.ClusterNode (#2201)
* set default response_callbacks to redis.asyncio.cluster.ClusterNode
* add test case for ClusterNode class
* fix lint error
* merge test case into `test_startup_nodes`
Diffstat (limited to 'tests/test_asyncio/test_cluster.py')
-rw-r--r-- | tests/test_asyncio/test_cluster.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_asyncio/test_cluster.py b/tests/test_asyncio/test_cluster.py index 6543e28..6c28ce3 100644 --- a/tests/test_asyncio/test_cluster.py +++ b/tests/test_asyncio/test_cluster.py @@ -244,6 +244,11 @@ class TestRedisClusterObj: await cluster.close() + startup_nodes = [ClusterNode("127.0.0.1", 16379)] + async with RedisCluster(startup_nodes=startup_nodes) as rc: + assert await rc.set("A", 1) + assert await rc.get("A") == b"1" + async def test_empty_startup_nodes(self) -> None: """ Test that exception is raised when empty providing empty startup_nodes |