We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55e0bc commit 93da5b1Copy full SHA for 93da5b1
tests/test_asyncio/conftest.py
@@ -223,14 +223,19 @@ async def mock_cluster_resp_slaves(create_redis, **kwargs):
223
@pytest_asyncio.fixture()
224
def mock_connection() -> Connection:
225
mock_connection = AsyncMock(spec=Connection)
226
+ mock_connection.__await__ = dummy_awaitable
227
return mock_connection
228
229
230
231
def mock_pool() -> ConnectionPool:
232
mock_pool = AsyncMock(spec=ConnectionPool)
233
+ mock_pool.__await__ = dummy_awaitable
234
return mock_pool
235
236
+def dummy_awaitable():
237
+ pass
238
+
239
240
241
async def credential_provider(request) -> CredentialProvider:
0 commit comments