diff options
| author | 2020-08-17 19:13:18 -0700 | |
|---|---|---|
| committer | 2020-08-17 19:13:18 -0700 | |
| commit | 282596d1414613e05ee8b956393913da976b35e3 (patch) | |
| tree | e149f59a29b1817e9f3be3e5dffd88425847884d /tests/helpers.py | |
| parent | Silence tests: create channel and overwrite in setUp for silence tests (diff) | |
Silence tests: fix mock for _init_task
An `AsyncMock` fails because it returns a coroutine which may only be
awaited once. However, an `asyncio.Future` is perfect because it is
easy to create and can be awaited repeatedly, just like the actual
`asyncio.Task` that is being mocked.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions