summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMatus Valo <matusvalo@gmail.com>2021-09-12 01:03:09 +0200
committerMatus Valo <matusvalo@gmail.com>2021-09-12 01:03:09 +0200
commitef6ec99154f8e3b2aa384799e728731865888143 (patch)
treef3dbed54c8d5107a87227116aa7cb4f7bf508d39 /t
parente4fe3280ac528b100a399c30c90a9eec6dfecfec (diff)
downloadkombu-ef6ec99154f8e3b2aa384799e728731865888143.tar.gz
Use ANY from unittest instead of case.mock
Diffstat (limited to 't')
-rw-r--r--t/unit/transport/test_redis.py4
1 files changed, 2 insertions, 2 deletions
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,