aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-05-22 16:15:23 -0700
committerGravatar MarkKoz <[email protected]>2020-05-22 16:15:23 -0700
commit6aed2f6b69b79b5a7e5f327819d026e7a63a7dab (patch)
tree4d84fc126651da3c000a7ac78f5e538f0fbe3dbf /tests/base.py
parentImprove 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