aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py
index 02a18bbca..5f649e136 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -1,4 +1,3 @@
-import textwrap
import unittest
from collections import namedtuple
from datetime import datetime
@@ -211,8 +210,8 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
description=utils.INFRACTION_DESCRIPTION_TEMPLATE.format(
type="Mute",
expires="N/A",
- reason=textwrap.shorten("foo bar" * 4000, 1000, placeholder="...")
- ),
+ reason="foo bar" * 4000
+ )[:2045] + "...",
colour=Colours.soft_red,
url=utils.RULES_URL
).set_author(