aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Dennis Pham <[email protected]>2020-05-19 00:41:55 -0400
committerGravatar GitHub <[email protected]>2020-05-19 00:41:55 -0400
commit73943c225625c73dfb08f8dc3d69141f10edcf95 (patch)
treef68a542372a90bd336c5fe9ce0fbdd9bfefeda75 /tests
parentChange tests to use the new timeout constant (diff)
parentAdd Steam gift card scam to domain blacklist (diff)
Merge branch 'master' into eval-timeout-increase
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/test_snekbox.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/bot/cogs/test_snekbox.py b/tests/bot/cogs/test_snekbox.py
index ccc090f02..14299e766 100644
--- a/tests/bot/cogs/test_snekbox.py
+++ b/tests/bot/cogs/test_snekbox.py
@@ -208,10 +208,9 @@ class SnekboxTests(unittest.IsolatedAsyncioTestCase):
async def test_eval_command_call_help(self):
"""Test if the eval command call the help command if no code is provided."""
- ctx = MockContext()
- ctx.invoke = AsyncMock()
+ ctx = MockContext(command="sentinel")
await self.cog.eval_command.callback(self.cog, ctx=ctx, code='')
- ctx.invoke.assert_called_once_with(self.bot.get_command("help"), "eval")
+ ctx.send_help.assert_called_once_with("sentinel")
async def test_send_eval(self):
"""Test the send_eval function."""