From ef6ec99154f8e3b2aa384799e728731865888143 Mon Sep 17 00:00:00 2001 From: Matus Valo Date: Sun, 12 Sep 2021 01:03:09 +0200 Subject: Use ANY from unittest instead of case.mock --- t/unit/transport/test_redis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/unit/transport/test_redis.py b/t/unit/transport/test_redis.py index 0f585ca9..0841c41a 100644 --- a/t/unit/transport/test_redis.py +++ b/t/unit/transport/test_redis.py @@ -1466,7 +1466,7 @@ class test_RedisSentinel: ('localhost', 65534), ('localhost', 65535), ], - connection_class=mock.ANY, db=0, max_connections=10, + connection_class=ANY, db=0, max_connections=10, min_other_sentinels=0, password=None, sentinel_kwargs=None, socket_connect_timeout=None, socket_keepalive=None, socket_keepalive_options=None, socket_timeout=None, @@ -1489,7 +1489,7 @@ class test_RedisSentinel: connection.channel() patched.assert_called_once_with( [('localhost', 65532)], - connection_class=mock.ANY, db=0, max_connections=10, + connection_class=ANY, db=0, max_connections=10, min_other_sentinels=0, password=None, sentinel_kwargs=None, socket_connect_timeout=None, socket_keepalive=None, socket_keepalive_options=None, socket_timeout=None, -- cgit v1.2.1