aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-06-06 00:11:41 -0700
committerGravatar Xithrius <[email protected]>2021-06-06 00:11:41 -0700
commit4edecf659c3148c8e4427054b7d841c65d0f67be (patch)
treef1332d96114b1c169bdad51a20ebfcaad81558cf /tests
parentAllowed text format warning to have multiple formats. (diff)
Added .txt file extension to antimalware test.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/filters/test_antimalware.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bot/exts/filters/test_antimalware.py b/tests/bot/exts/filters/test_antimalware.py
index 3393c6cdc..9f020c964 100644
--- a/tests/bot/exts/filters/test_antimalware.py
+++ b/tests/bot/exts/filters/test_antimalware.py
@@ -118,7 +118,10 @@ class AntiMalwareCogTests(unittest.IsolatedAsyncioTestCase):
cmd_channel = self.bot.get_channel(Channels.bot_commands)
self.assertEqual(embed.description, antimalware.TXT_EMBED_DESCRIPTION.format.return_value)
- antimalware.TXT_EMBED_DESCRIPTION.format.assert_called_with(cmd_channel_mention=cmd_channel.mention)
+ antimalware.TXT_EMBED_DESCRIPTION.format.assert_called_with(
+ blocked_extension_str=".txt",
+ cmd_channel_mention=cmd_channel.mention
+ )
async def test_other_disallowed_extension_embed_description(self):
"""Test the description for a non .py/.txt disallowed extension."""