aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bot/cogs/moderation/test_silence.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bot/cogs/moderation/test_silence.py b/tests/bot/cogs/moderation/test_silence.py
index c1039f85c..e2e3ca9c1 100644
--- a/tests/bot/cogs/moderation/test_silence.py
+++ b/tests/bot/cogs/moderation/test_silence.py
@@ -174,6 +174,9 @@ class SilenceTests(unittest.IsolatedAsyncioTestCase):
async def test_silence_private_notifier(self):
"""Channel should be added to notifier with `persistent` set to `True`, and the other way around."""
channel = MockTextChannel()
+ overwrite = PermissionOverwrite(send_messages=True, add_reactions=None)
+ channel.overwrites_for.return_value = overwrite
+
with mock.patch.object(self.cog, "notifier", create=True):
with self.subTest(persistent=True):
await self.cog._silence(channel, True, None)