diff options
author | 2020-10-08 13:22:54 -0700 | |
---|---|---|
committer | 2020-10-08 13:22:54 -0700 | |
commit | 5b87a272ff21df9fa4fb59fdf9ec92c6b57193c6 (patch) | |
tree | a451f179f09fbf21f9b88a1116d2fea1982ca560 /tests | |
parent | Silence: add to notifier when indefinite rather than temporary (diff) |
Silence: remove _mod_log_channel attribute
It's only used as an argument to `SilenceNotifier`, so it doesn't need
to be an instance attribute.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/moderation/test_silence.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/cogs/moderation/test_silence.py b/tests/bot/cogs/moderation/test_silence.py index 50d8419ac..6f8f4386b 100644 --- a/tests/bot/cogs/moderation/test_silence.py +++ b/tests/bot/cogs/moderation/test_silence.py @@ -119,7 +119,7 @@ class SilenceCogTests(unittest.IsolatedAsyncioTestCase): mod_log = MockTextChannel() self.bot.get_channel.side_effect = (None, mod_log) await self.cog._async_init() - notifier.assert_called_once_with(self.cog._mod_log_channel) + notifier.assert_called_once_with(mod_log) @autospec(silence, "SilenceNotifier", pass_mocks=False) async def test_async_init_rescheduled(self): |