diff options
author | 2020-05-20 11:15:09 +0300 | |
---|---|---|
committer | 2020-05-20 11:15:09 +0300 | |
commit | a1b6d147befd4043acdddc00667d3bda94cc76ad (patch) | |
tree | 9fcf0522b4b45194fa692301abcf0ae9aa334d6a /tests | |
parent | Infr. Test: Replace `get_active_mock` return value (diff) |
Infr Tests: Make `get_active_infraction` return `None`
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 925439bf3..5548d9f68 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 = {"id": 1} + get_active_mock.return_value = None post_infraction_mock.return_value = {"foo": "bar"} self.cog.apply_infraction = AsyncMock() |