aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-08 08:36:42 +0200
committerGravatar ks123 <[email protected]>2020-03-08 08:36:42 +0200
commitf4bb6849f8f345ff99f6295e707aa0712af070a7 (patch)
treeb7144a5c09c8f12f6776e17d57d70e0dcba57120
parent(Moderation Utils Tests): Cleaned up `has_active_infraction` test cases, hard... (diff)
(Moderation Utils Tests): Removed `Dict` unpacking in `notify_infraction` test.
-rw-r--r--tests/bot/cogs/moderation/test_utils.py40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py
index 5868da61f..d6e300c89 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -78,11 +78,11 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
{
"args": (self.user, "ban", "2020-02-26 09:20 (23 hours and 59 minutes)"),
"expected_output": {
- "description": INFRACTION_DESCRIPTION_TEMPLATE.format(**{
- "type": "Ban",
- "expires": "2020-02-26 09:20 (23 hours and 59 minutes)",
- "reason": "No reason provided."
- }),
+ "description": INFRACTION_DESCRIPTION_TEMPLATE.format(
+ type="Ban",
+ expires="2020-02-26 09:20 (23 hours and 59 minutes)",
+ reason="No reason provided."
+ ),
"icon_url": Icons.token_removed,
"footer": INFRACTION_APPEAL_FOOTER,
},
@@ -92,11 +92,11 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
{
"args": (self.user, "warning", None, "Test reason."),
"expected_output": {
- "description": INFRACTION_DESCRIPTION_TEMPLATE.format(**{
- "type": "Warning",
- "expires": "N/A",
- "reason": "Test reason."
- }),
+ "description": INFRACTION_DESCRIPTION_TEMPLATE.format(
+ type="Warning",
+ expires="N/A",
+ reason="Test reason."
+ ),
"icon_url": Icons.token_removed,
"footer": Embed.Empty
},
@@ -106,11 +106,11 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
{
"args": (self.user, "note", None, None, Icons.defcon_denied),
"expected_output": {
- "description": INFRACTION_DESCRIPTION_TEMPLATE.format(**{
- "type": "Note",
- "expires": "N/A",
- "reason": "No reason provided."
- }),
+ "description": INFRACTION_DESCRIPTION_TEMPLATE.format(
+ type="Note",
+ expires="N/A",
+ reason="No reason provided."
+ ),
"icon_url": Icons.defcon_denied,
"footer": Embed.Empty
},
@@ -120,11 +120,11 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
{
"args": (self.user, "mute", "2020-02-26 09:20 (23 hours and 59 minutes)", "Test", Icons.defcon_denied),
"expected_output": {
- "description": INFRACTION_DESCRIPTION_TEMPLATE.format(**{
- "type": "Mute",
- "expires": "2020-02-26 09:20 (23 hours and 59 minutes)",
- "reason": "Test"
- }),
+ "description": INFRACTION_DESCRIPTION_TEMPLATE.format(
+ type="Mute",
+ expires="2020-02-26 09:20 (23 hours and 59 minutes)",
+ reason="Test"
+ ),
"icon_url": Icons.defcon_denied,
"footer": INFRACTION_APPEAL_FOOTER
},