diff options
author | 2020-05-20 11:02:37 +0300 | |
---|---|---|
committer | 2020-05-20 11:02:37 +0300 | |
commit | d9730e41b3144862fdd9c221d160a40144a7c881 (patch) | |
tree | b28c917ff120ade7044f8eaadad1af30c347ac0d /tests | |
parent | Infr. Tests: Replace `str` with `dict` (diff) |
Infr. Test: Replace `get_active_mock` return value
Replace `{"foo": "bar"}` with `{"id": 1}`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/moderation/test_infractions.py | 2 |
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 139209749..925439bf3 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": "bar"} + get_active_mock.return_value = {"id": 1} post_infraction_mock.return_value = {"foo": "bar"} self.cog.apply_infraction = AsyncMock() |