diff options
author | 2020-03-11 15:32:24 +0100 | |
---|---|---|
committer | 2020-03-11 15:32:24 +0100 | |
commit | 64b27e557acf268a19246b2eb80ad6a743df95f4 (patch) | |
tree | 8bfaa6806d858389f75f569ecbf27a93c875e9a5 /tests | |
parent | Fix erroneous `assert_called_once_with` calls. (diff) |
Reset `self.ctx` call history after every subtest.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/moderation/test_silence.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/bot/cogs/moderation/test_silence.py b/tests/bot/cogs/moderation/test_silence.py index 4163a9af7..ab2f091ec 100644 --- a/tests/bot/cogs/moderation/test_silence.py +++ b/tests/bot/cogs/moderation/test_silence.py @@ -52,6 +52,7 @@ class SilenceTests(unittest.IsolatedAsyncioTestCase): with mock.patch.object(self.cog, "_silence", return_value=_silence_patch_return): await self.cog.silence.callback(self.cog, self.ctx, duration) self.ctx.send.assert_called_once_with(result_message) + self.ctx.reset_mock() async def test_unsilence_sent_correct_discord_message(self): """Check if proper message was sent to `alert_chanel`.""" |