aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-05 16:57:02 +0200
committerGravatar ks123 <[email protected]>2020-03-05 16:57:02 +0200
commitd8a00abd3860df68dab1805f213f6467085d78fd (patch)
tree6762d621e4bf32fa4b9a455eac6f206169892fca /tests
parent(Moderation Utils Tests): Added API POST call assertion to `test_post_user`. (diff)
(Moderation Utils Tests): Added `user.send` call assertion to `test_send_private_embed`.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py
index 847ba8465..300f0b80d 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -356,6 +356,8 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
result = await send_private_embed(*args)
self.assertEqual(result, expected)
+ if expected:
+ args[0].send.assert_awaited_once_with(embed=args[1])
self.user.send.reset_mock(side_effect=True)