aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-03 18:19:17 +0300
committerGravatar ks129 <[email protected]>2020-04-03 18:19:17 +0300
commitc5949686fc03ecb74787cfd23412c8600638139f (patch)
tree50e831ac10649647e4e392e2ee2a63d6f3c936d8 /tests
parent(Snekbox Tests, discord.py 1.3.x Migrations): Removed `.callback` from comman... (diff)
(Silence Tests, discord.py 1.3.x Migrations): Removed `.callback` from commands calling.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_silence.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/cogs/moderation/test_silence.py b/tests/bot/cogs/moderation/test_silence.py
index 3fd149f04..52b7d47f1 100644
--- a/tests/bot/cogs/moderation/test_silence.py
+++ b/tests/bot/cogs/moderation/test_silence.py
@@ -122,14 +122,14 @@ class SilenceTests(unittest.IsolatedAsyncioTestCase):
starting_unsilenced_state=_silence_patch_return
):
with mock.patch.object(self.cog, "_silence", return_value=_silence_patch_return):
- await self.cog.silence.callback(self.cog, self.ctx, duration)
+ await self.cog.silence(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):
"""Proper reply after a successful unsilence."""
with mock.patch.object(self.cog, "_unsilence", return_value=True):
- await self.cog.unsilence.callback(self.cog, self.ctx)
+ await self.cog.unsilence(self.cog, self.ctx)
self.ctx.send.assert_called_once_with(f"{Emojis.check_mark} unsilenced current channel.")
async def test_silence_private_for_false(self):