aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-06-24 15:18:49 +0300
committerGravatar ks129 <[email protected]>2020-06-24 15:18:49 +0300
commit3d4c50c498647a6537eef747e84690f8852d388c (patch)
treee04bcbf433a074e94e31e06cecf68314f755d84e /tests
parentSync keys, variable names and kwargs in `test_post_user` (diff)
Replace `True` test with `In` test on `test_post_user`
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_utils.py2
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 b434737ea..5be703bc6 100644
--- a/tests/bot/cogs/moderation/test_utils.py
+++ b/tests/bot/cogs/moderation/test_utils.py
@@ -279,7 +279,7 @@ class ModerationUtilsTests(unittest.IsolatedAsyncioTestCase):
self.bot.api_client.post.assert_awaited_once_with("bot/users", json=payload)
else:
self.ctx.send.assert_awaited_once()
- self.assertTrue(str(raise_error.status) in self.ctx.send.call_args[0][0])
+ self.assertIn(str(raise_error.status), self.ctx.send.call_args[0][0])
if isinstance(user, MagicMock):
log_mock.debug.assert_called_once()