aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-06-06 15:55:19 -0700
committerGravatar Xithrius <[email protected]>2021-06-06 15:55:19 -0700
commitaeaef8ff604c9ea62fdf1602200ee87f2adf7f6a (patch)
tree22ddbf7b63db33db9a7eb36f439966ba237b655d
parentAdded subtests for `.txt`, `.json`, and `.csv` files. (diff)
Added new formats to unittest docstrings.
-rw-r--r--tests/bot/exts/filters/test_antimalware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/exts/filters/test_antimalware.py b/tests/bot/exts/filters/test_antimalware.py
index 359401814..c07bde8d7 100644
--- a/tests/bot/exts/filters/test_antimalware.py
+++ b/tests/bot/exts/filters/test_antimalware.py
@@ -104,7 +104,7 @@ class AntiMalwareCogTests(unittest.IsolatedAsyncioTestCase):
self.assertEqual(embed.description, antimalware.PY_EMBED_DESCRIPTION)
async def test_txt_file_redirect_embed_description(self):
- """A message containing a .txt file should result in the correct embed."""
+ """A message containing a .txt/.json/.csv file should result in the correct embed."""
test_values = (
("text", ".txt"),
("json", ".json"),
@@ -136,7 +136,7 @@ class AntiMalwareCogTests(unittest.IsolatedAsyncioTestCase):
)
async def test_other_disallowed_extension_embed_description(self):
- """Test the description for a non .py/.txt disallowed extension."""
+ """Test the description for a non .py/.txt/.json/.csv disallowed extension."""
attachment = MockAttachment(filename="python.disallowed")
self.message.attachments = [attachment]
self.message.channel.send = AsyncMock()