aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-12 20:15:28 +0200
committerGravatar ks123 <[email protected]>2020-03-12 20:15:28 +0200
commit35ffc216e62a46aa6ba6fcb7d0717354d176e175 (patch)
tree5bffd658aced8d669c9a1744dea7b6e1a0068a16 /tests
parent(Moderation Utils Tests): Move errors from booleans to actual errors in `post... (diff)
(Moderation Utils Tests): Added call check for `ctx.send` in `post_user` test.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py
index 9afa5ab0b..e0af13a46 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -263,6 +263,7 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
if not error:
self.bot.api_client.post.assert_awaited_once_with("bot/users", json=payload)
else:
+ self.ctx.send.assert_awaited_once()
self.assertTrue(str(error.status) in self.ctx.send.call_args[0][0])
async def test_send_private_embed(self):