diff options
author | 2020-05-22 16:15:23 -0700 | |
---|---|---|
committer | 2020-05-22 16:15:23 -0700 | |
commit | 6aed2f6b69b79b5a7e5f327819d026e7a63a7dab (patch) | |
tree | 4d84fc126651da3c000a7ac78f5e538f0fbe3dbf /tests/base.py | |
parent | Improve aiohttp context manager mocking in snekbox tests (diff) |
Fix unawaited coro warning when instantiating Bot for MockBot's spec
The fix is to mock the loop and pass it to the Bot. It will then set
it as `self.loop` rather than trying to get an event loop from asyncio.
The `create_task` patch has been moved to this loop mock rather than
being done in MockBot to ensure that it applies to anything calling it
when instantiating the Bot.
Diffstat (limited to 'tests/base.py')
0 files changed, 0 insertions, 0 deletions