aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bot/cogs/moderation/test_utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py
index c5b8f380f..7f94f20e8 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -317,7 +317,10 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
else:
self.assertEqual(result, expected)
- self.bot.api_client.post.assert_awaited_once_with("bot/users", json=payload)
+ if not error:
+ self.bot.api_client.post.assert_awaited_once_with("bot/users", json=payload)
+
+ self.bot.api_client.post.reset_mock(side_effect=True)
async def test_send_private_embed(self):
"""Test does `send_private_embed` return correct value."""