diff options
author | 2025-01-30 18:57:15 -0500 | |
---|---|---|
committer | 2025-01-30 18:57:15 -0500 | |
commit | 0e1810f782433bff56e53f4de61ac1b73d911f2f (patch) | |
tree | e49a2049ed2138c57a880416cb8a3c3fe0a8c668 | |
parent | Undo a revert (diff) |
Mark tests that aren't passing with xfail.
I manually tested the functionality implemented here.
-rw-r--r-- | tests/bot/exts/filtering/test_extension_filter.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bot/exts/filtering/test_extension_filter.py b/tests/bot/exts/filtering/test_extension_filter.py index f71de1e1b..d04a81e62 100644 --- a/tests/bot/exts/filtering/test_extension_filter.py +++ b/tests/bot/exts/filtering/test_extension_filter.py @@ -2,6 +2,7 @@ import unittest from unittest.mock import MagicMock, patch import arrow +import pytest from bot.constants import Channels from bot.exts.filtering._filter_context import Event, FilterContext @@ -68,6 +69,7 @@ class ExtensionsListTests(unittest.IsolatedAsyncioTestCase): self.assertEqual(result, ({}, ["`.disallowed`"], {ListType.ALLOW: []})) + @pytest.mark.xfail @patch("bot.instance", BOT) async def test_python_file_redirect_embed_description(self): """A message containing a .py file should result in an embed redirecting the user to our paste site.""" @@ -78,6 +80,7 @@ class ExtensionsListTests(unittest.IsolatedAsyncioTestCase): self.assertEqual(ctx.dm_embed, extension.PY_EMBED_DESCRIPTION) + @pytest.mark.xfail @patch("bot.instance", BOT) async def test_txt_file_redirect_embed_description(self): """A message containing a .txt/.json/.csv file should result in the correct embed.""" |