diff options
| author | 2022-04-18 17:40:41 +0100 | |
|---|---|---|
| committer | 2022-04-18 17:47:42 +0100 | |
| commit | 267f6d94cb10a45f873ea1d0e22f812267be5e69 (patch) | |
| tree | a91a5b1316eae221b368aa092a6de91af286a575 /tests | |
| parent | Test that sync cog syncers run when sync cog is loaded (diff) | |
Add missing underscores to test function names
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/exts/moderation/test_silence.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/tests/bot/exts/moderation/test_silence.py b/tests/bot/exts/moderation/test_silence.py index 2ebb16978..65aecad28 100644 --- a/tests/bot/exts/moderation/test_silence.py +++ b/tests/bot/exts/moderation/test_silence.py @@ -114,14 +114,14 @@ class SilenceCogTests(unittest.IsolatedAsyncioTestCase):          self.cog = silence.Silence(self.bot)      @autospec(silence, "SilenceNotifier", pass_mocks=False) -    async def testcog_load_got_guild(self): +    async def test_cog_load_got_guild(self):          """Bot got guild after it became available."""          await self.cog.cog_load()          self.bot.wait_until_guild_available.assert_awaited_once()          self.bot.get_guild.assert_called_once_with(Guild.id)      @autospec(silence, "SilenceNotifier", pass_mocks=False) -    async def testcog_load_got_channels(self): +    async def test_cog_load_got_channels(self):          """Got channels from bot."""          self.bot.get_channel.side_effect = lambda id_: MockTextChannel(id=id_) @@ -129,7 +129,7 @@ class SilenceCogTests(unittest.IsolatedAsyncioTestCase):          self.assertEqual(self.cog._mod_alerts_channel.id, Channels.mod_alerts)      @autospec(silence, "SilenceNotifier") -    async def testcog_load_got_notifier(self, notifier): +    async def test_cog_load_got_notifier(self, notifier):          """Notifier was started with channel."""          self.bot.get_channel.side_effect = lambda id_: MockTextChannel(id=id_) | 
