diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/exts/moderation/infraction/test_infractions.py | 8 | 
1 files changed, 0 insertions, 8 deletions
| diff --git a/tests/bot/exts/moderation/infraction/test_infractions.py b/tests/bot/exts/moderation/infraction/test_infractions.py index 5dbbb8e00..bf557a484 100644 --- a/tests/bot/exts/moderation/infraction/test_infractions.py +++ b/tests/bot/exts/moderation/infraction/test_infractions.py @@ -86,14 +86,6 @@ class VoiceBanTests(unittest.IsolatedAsyncioTestCase):          self.assertIsNone(await self.cog.unvoiceban(self.cog, self.ctx, self.user))          self.cog.pardon_infraction.assert_awaited_once_with(self.ctx, "voice_ban", self.user) -    @patch("bot.exts.moderation.infraction.infractions._utils.get_active_infraction") -    async def test_voice_ban_not_having_voice_verified_role(self, get_active_infraction_mock): -        """Should send message and not apply infraction when user don't have voice verified role.""" -        self.user.roles = [MockRole(id=987)] -        self.assertIsNone(await self.cog.apply_voice_ban(self.ctx, self.user, "foobar")) -        self.ctx.send.assert_awaited_once() -        get_active_infraction_mock.assert_not_awaited() -      @patch("bot.exts.moderation.infraction.infractions._utils.post_infraction")      @patch("bot.exts.moderation.infraction.infractions._utils.get_active_infraction")      async def test_voice_ban_user_have_active_infraction(self, get_active_infraction, post_infraction_mock): | 
