aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2024-01-28 23:39:05 +0000
committerGravatar GitHub <[email protected]>2024-01-28 23:39:05 +0000
commit2e49e1b5f974f501bf502ab5ee6068ab114df37c (patch)
tree7c61f5bf56542281a8f8f67a481526b574c2718f /tests
parentFix test code that was doing nothing (diff)
parentUpdate URL regex in embed filter (#2896) (diff)
Merge branch 'main' into fix-incorrect-test
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/moderation/test_modlog.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/bot/exts/moderation/test_modlog.py b/tests/bot/exts/moderation/test_modlog.py
index 79e04837d..f2b02bd1b 100644
--- a/tests/bot/exts/moderation/test_modlog.py
+++ b/tests/bot/exts/moderation/test_modlog.py
@@ -3,6 +3,7 @@ import unittest
import discord
from bot.exts.moderation.modlog import ModLog
+from bot.utils.modlog import send_log_message
from tests.helpers import MockBot, MockTextChannel
@@ -17,7 +18,8 @@ class ModLogTests(unittest.IsolatedAsyncioTestCase):
async def test_log_entry_description_truncation(self):
"""Test that embed description for ModLog entry is truncated."""
self.bot.get_channel.return_value = self.channel
- await self.cog.send_log_message(
+ await send_log_message(
+ self.bot,
icon_url="foo",
colour=discord.Colour.blue(),
title="bar",