diff options
author | 2020-05-22 15:40:50 -0700 | |
---|---|---|
committer | 2020-05-22 15:40:50 -0700 | |
commit | fd6f3d30b4c67f9a81346bb142d4696948fa2812 (patch) | |
tree | 2a7bc4377a546d7f0e4cb2323bdaede2045ac703 | |
parent | Set up async testbed (diff) |
Fix assertion for `create_task` in duck pond tests
The assertion wasn't using the assertion method. Furthermore, it was
testing a non-existent function `create_loop` rather than `create_task`.
-rw-r--r-- | tests/bot/cogs/test_duck_pond.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_duck_pond.py b/tests/bot/cogs/test_duck_pond.py index 7e6bfc748..a8c0107c6 100644 --- a/tests/bot/cogs/test_duck_pond.py +++ b/tests/bot/cogs/test_duck_pond.py @@ -45,7 +45,7 @@ class DuckPondTests(base.LoggingTestsMixin, unittest.IsolatedAsyncioTestCase): self.assertEqual(cog.bot, bot) self.assertEqual(cog.webhook_id, constants.Webhooks.duck_pond) - bot.loop.create_loop.called_once_with(cog.fetch_webhook()) + bot.loop.create_task.assert_called_once_with(cog.fetch_webhook()) def test_fetch_webhook_succeeds_without_connectivity_issues(self): """The `fetch_webhook` method waits until `READY` event and sets the `webhook` attribute.""" |