diff options
| author | 2020-03-12 21:10:23 +0200 | |
|---|---|---|
| committer | 2020-03-12 21:10:23 +0200 | |
| commit | 5ac2aa48109f16e96195dda60e3a70b65b9562fa (patch) | |
| tree | b40be2be79549b80e48a243e14361ccdea1a2a70 | |
| parent | (Moderation Utils Tests): Added mock reset due fail. (diff) | |
(Moderation Utils Tests): Removed `once` from `post_infraction` test due tests failing.
| -rw-r--r-- | tests/bot/cogs/moderation/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/cogs/moderation/test_utils.py b/tests/bot/cogs/moderation/test_utils.py index 2cba37e3a..e23585c99 100644 --- a/tests/bot/cogs/moderation/test_utils.py +++ b/tests/bot/cogs/moderation/test_utils.py @@ -371,5 +371,5 @@ class TestPostInfraction(unittest.IsolatedAsyncioTestCase): actual = await utils.post_infraction(self.ctx, self.user, "mute", "Test reason") self.assertEqual(actual, "foo") - self.bot.api_client.post.assert_awaited_once_with("bot/infractions", json=payload) + self.bot.api_client.post.assert_awaited_with("bot/infractions", json=payload) post_user_mock.assert_awaited_once_with(self.ctx, self.user) |