aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-10-11 14:16:33 +0300
committerGravatar ks129 <[email protected]>2020-10-11 14:16:33 +0300
commit06343b5b24aa2b5e9d7d34e39ff604ec4577bcd8 (patch)
tree03b3edf302da270f0c19bef5220dc7c8d94036c5 /tests
parentCreate test to check does this pass proper kwargs to infraction posting (diff)
Check arguments for get_active_infraction in voice ban tests
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/moderation/infraction/test_infractions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/exts/moderation/infraction/test_infractions.py b/tests/bot/exts/moderation/infraction/test_infractions.py
index ebb39320a..37848e9e8 100644
--- a/tests/bot/exts/moderation/infraction/test_infractions.py
+++ b/tests/bot/exts/moderation/infraction/test_infractions.py
@@ -98,7 +98,7 @@ class VoiceBanTests(unittest.IsolatedAsyncioTestCase):
"""Should return early when user already have Voice Ban infraction."""
get_active_infraction.return_value = {"foo": "bar"}
self.assertIsNone(await self.cog.apply_voice_ban(self.ctx, self.user, "foobar"))
- get_active_infraction.assert_awaited_once()
+ get_active_infraction.assert_awaited_once_with(self.ctx, self.user, "voice_ban")
post_infraction_mock.assert_not_awaited()
@patch("bot.exts.moderation.infraction.infractions._utils.post_infraction")