diff options
| author | 2020-08-17 13:33:47 -0700 | |
|---|---|---|
| committer | 2020-08-17 13:33:47 -0700 | |
| commit | 28f7f66e4e9543d79f5a64ee6a0e0bbc80088804 (patch) | |
| tree | 2c1ceff230fb1f1c93cc74629b711c7f6dbe41e8 /tests | |
| parent | Silence tests: fix test_unsilence_private_for_false (diff) | |
Silence tests: fix test_silence_private_notifier
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/cogs/moderation/test_silence.py | 3 |
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) |