aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-12 20:19:43 +0200
committerGravatar ks123 <[email protected]>2020-03-12 20:19:43 +0200
commitfe504bd30360df0c18fbfccfb27d2652ac19e9b8 (patch)
treeec1502c11129cef670300f77cf94fe81d2bc884f /tests
parent(Moderation Utils Tests): Added call check for `ctx.send` in `post_user` test. (diff)
(Moderation Utils Tests): Added mock reset due fail.
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 e0af13a46..2cba37e3a 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -355,6 +355,8 @@ class TestPostInfraction(unittest.IsolatedAsyncioTestCase):
@patch("bot.cogs.moderation.utils.post_user")
async def test_first_fail_second_success_user_post_infraction(self, post_user_mock):
"""Test does `post_infraction` fail first time and return correct result 2nd time when new user posted."""
+ self.bot.api_client.post.reset_mock()
+
payload = {
"actor": self.ctx.message.author.id,
"hidden": False,