aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-08-17 19:13:18 -0700
committerGravatar MarkKoz <[email protected]>2020-08-17 19:13:18 -0700
commit282596d1414613e05ee8b956393913da976b35e3 (patch)
treee149f59a29b1817e9f3be3e5dffd88425847884d /tests/helpers.py
parentSilence 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