aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/moderation/test_incidents.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/bot/exts/moderation/test_incidents.py b/tests/bot/exts/moderation/test_incidents.py
index 06eafdde3..3bdc9128c 100644
--- a/tests/bot/exts/moderation/test_incidents.py
+++ b/tests/bot/exts/moderation/test_incidents.py
@@ -849,26 +849,3 @@ class TestMessageLinkEmbeds(TestIncidents):
# Check for the embed descriptions
for embed in embeds:
self.assertEqual(embed.description, description)
-
- @patch("bot.exts.moderation.incidents.is_incident", MagicMock(return_value=True))
- async def test_incident_message_edit(self):
- """Edit the incident message and check whether `extract_message_links` is called or not."""
- self.cog_instance.incidents_webhook = MockAsyncWebhook(id=101) # Patch in our webhook
- self.cog_instance.incidents_webhook.send = AsyncMock(return_value=MockMessage(id=191))
-
- text_channel = MockTextChannel(id=123)
- self.cog_instance.bot.get_channel = MagicMock(return_value=text_channel)
- text_channel.fetch_message = AsyncMock(return_value=MockMessage(id=777, content="Did jason just screw up?"))
-
- payload = AsyncMock(
- discord.RawMessageUpdateEvent,
- channel_id=123,
- message_id=456
- )
-
- with patch(
- "bot.exts.moderation.incidents.Incidents.extract_message_links", AsyncMock()
- ) as mock_extract_message_links:
- await self.cog_instance.on_raw_message_edit(payload)
-
- mock_extract_message_links.assert_awaited_once()