diff options
| author | 2021-10-17 14:48:05 +0200 | |
|---|---|---|
| committer | 2021-10-17 14:48:05 +0200 | |
| commit | 81754e69b46ab257a05146f18c5c5a821954bc6c (patch) | |
| tree | 3d2f326ae21133eb52e8dea09515486d2d469189 /tests | |
| parent | Merge pull request #1882 from python-discord/fix-attr-error (diff) | |
| parent | Merge branch 'main' into new-appeals-process (diff) | |
Merge pull request #1844 from python-discord/new-appeals-process
Direct users to the appeals server when banned
Diffstat (limited to '')
| -rw-r--r-- | tests/bot/exts/moderation/infraction/test_utils.py | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/tests/bot/exts/moderation/infraction/test_utils.py b/tests/bot/exts/moderation/infraction/test_utils.py index eb256f1fd..72eebb254 100644 --- a/tests/bot/exts/moderation/infraction/test_utils.py +++ b/tests/bot/exts/moderation/infraction/test_utils.py @@ -139,14 +139,14 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):                          type="Ban",                          expires="2020-02-26 09:20 (23 hours and 59 minutes)",                          reason="No reason provided." -                    ), +                    ) + utils.INFRACTION_APPEAL_SERVER_FOOTER,                      colour=Colours.soft_red,                      url=utils.RULES_URL                  ).set_author(                      name=utils.INFRACTION_AUTHOR_NAME,                      url=utils.RULES_URL,                      icon_url=Icons.token_removed -                ).set_footer(text=utils.INFRACTION_APPEAL_MODMAIL_FOOTER), +                ),                  "send_result": True              },              { @@ -157,14 +157,14 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):                          type="Warning",                          expires="N/A",                          reason="Test reason." -                    ), +                    ) + utils.INFRACTION_APPEAL_MODMAIL_FOOTER,                      colour=Colours.soft_red,                      url=utils.RULES_URL                  ).set_author(                      name=utils.INFRACTION_AUTHOR_NAME,                      url=utils.RULES_URL,                      icon_url=Icons.token_removed -                ).set_footer(text=utils.INFRACTION_APPEAL_MODMAIL_FOOTER), +                ),                  "send_result": False              },              # Note that this test case asserts that the DM that *would* get sent to the user is formatted @@ -177,14 +177,14 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):                          type="Note",                          expires="N/A",                          reason="No reason provided." -                    ), +                    ) + utils.INFRACTION_APPEAL_MODMAIL_FOOTER,                      colour=Colours.soft_red,                      url=utils.RULES_URL                  ).set_author(                      name=utils.INFRACTION_AUTHOR_NAME,                      url=utils.RULES_URL,                      icon_url=Icons.defcon_denied -                ).set_footer(text=utils.INFRACTION_APPEAL_MODMAIL_FOOTER), +                ),                  "send_result": False              },              { @@ -195,14 +195,14 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):                          type="Mute",                          expires="2020-02-26 09:20 (23 hours and 59 minutes)",                          reason="Test" -                    ), +                    ) + utils.INFRACTION_APPEAL_MODMAIL_FOOTER,                      colour=Colours.soft_red,                      url=utils.RULES_URL                  ).set_author(                      name=utils.INFRACTION_AUTHOR_NAME,                      url=utils.RULES_URL,                      icon_url=Icons.defcon_denied -                ).set_footer(text=utils.INFRACTION_APPEAL_MODMAIL_FOOTER), +                ),                  "send_result": False              },              { @@ -213,14 +213,14 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):                          type="Mute",                          expires="N/A",                          reason="foo bar" * 4000 -                    )[:4093] + "...", +                    )[:4093-utils.LONGEST_EXTRAS] + "..." + utils.INFRACTION_APPEAL_MODMAIL_FOOTER,                      colour=Colours.soft_red,                      url=utils.RULES_URL                  ).set_author(                      name=utils.INFRACTION_AUTHOR_NAME,                      url=utils.RULES_URL,                      icon_url=Icons.defcon_denied -                ).set_footer(text=utils.INFRACTION_APPEAL_MODMAIL_FOOTER), +                ),                  "send_result": True              }          ] | 
