aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-20 10:59:11 +0300
committerGravatar GitHub <[email protected]>2020-05-20 10:59:11 +0300
commite9bd09d90c5acf61caa955533f406851e1a65aec (patch)
treea1a9bea6f9e4fc11feba19695a792461085adafe
parentInfr. Tests: Add more content to await comment (diff)
Infr. Tests: Replace `str` with `dict`
To allow `.get`, I had to replace `str` return value with `dict`
-rw-r--r--tests/bot/cogs/moderation/test_infractions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/cogs/moderation/test_infractions.py b/tests/bot/cogs/moderation/test_infractions.py
index f8f340c2e..139209749 100644
--- a/tests/bot/cogs/moderation/test_infractions.py
+++ b/tests/bot/cogs/moderation/test_infractions.py
@@ -21,7 +21,7 @@ class TruncationTests(unittest.IsolatedAsyncioTestCase):
@patch("bot.cogs.moderation.utils.post_infraction")
async def test_apply_ban_reason_truncation(self, post_infraction_mock, get_active_mock):
"""Should truncate reason for `ctx.guild.ban`."""
- get_active_mock.return_value = 'foo'
+ get_active_mock.return_value = {"foo": "bar"}
post_infraction_mock.return_value = {"foo": "bar"}
self.cog.apply_infraction = AsyncMock()