aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-09-20 22:22:37 +0300
committerGravatar GitHub <[email protected]>2020-09-20 22:22:37 +0300
commita8b1c72d379d187b6266b6b38f9e85e594f39b11 (patch)
treeb039db5efe232bd86bd2d9413b43f04989f16d63 /tests
parentTry to fix location from where post infraction test get ID (diff)
Apply recent changes of notify infraction to test
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(