diff options
author | 2024-01-08 01:18:01 +0000 | |
---|---|---|
committer | 2024-01-08 01:18:01 +0000 | |
commit | e753bb3e9e05e7dcd28febdef851c04fe9f20ce7 (patch) | |
tree | b7d9c665d3cb97045c0950c3ebf407889ecbd2d2 /tests | |
parent | Merge pull request #2880 from python-discord/update-unambiguous-converters (diff) |
Move modlog method to util (#2877)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/exts/moderation/test_modlog.py | 4 |
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", |