aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_silence.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/bot/cogs/moderation/test_silence.py b/tests/bot/cogs/moderation/test_silence.py
index ab3d0742a..7c6efbfe4 100644
--- a/tests/bot/cogs/moderation/test_silence.py
+++ b/tests/bot/cogs/moderation/test_silence.py
@@ -83,19 +83,19 @@ class SilenceTests(unittest.IsolatedAsyncioTestCase):
async def test_instance_vars_got_guild(self):
"""Bot got guild after it became available."""
- await self.cog._get_instance_vars()
+ await self.cog._init_cog()
self.bot.wait_until_guild_available.assert_called_once()
self.bot.get_guild.assert_called_once_with(Guild.id)
async def test_instance_vars_got_role(self):
"""Got `Roles.verified` role from guild."""
- await self.cog._get_instance_vars()
+ await self.cog._init_cog()
guild = self.bot.get_guild()
guild.get_role.assert_called_once_with(Roles.verified)
async def test_instance_vars_got_channels(self):
"""Got channels from bot."""
- await self.cog._get_instance_vars()
+ await self.cog._init_cog()
self.bot.get_channel.called_once_with(Channels.mod_alerts)
self.bot.get_channel.called_once_with(Channels.mod_log)
@@ -104,7 +104,7 @@ class SilenceTests(unittest.IsolatedAsyncioTestCase):
"""Notifier was started with channel."""
mod_log = MockTextChannel()
self.bot.get_channel.side_effect = (None, mod_log)
- await self.cog._get_instance_vars()
+ await self.cog._init_cog()
notifier.assert_called_once_with(mod_log)
self.bot.get_channel.side_effect = None