diff options
author | 2020-04-03 19:49:36 +0300 | |
---|---|---|
committer | 2020-04-03 19:49:36 +0300 | |
commit | 41f3dfa1a93e0850c6120e5979f9a8a52386c516 (patch) | |
tree | 910a8d3ee4b91a02bc313e8fb4113f51a47b8852 | |
parent | (Talent Pool, discord.py 1.3.x Migrations): Replaced `help` command getting w... (diff) |
(Snekbox Tests, discord.py 1.3.x Migrations): Fixed wrong assertion of help command call.
-rw-r--r-- | tests/bot/cogs/test_snekbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_snekbox.py b/tests/bot/cogs/test_snekbox.py index d84e5accf..bcb3550f8 100644 --- a/tests/bot/cogs/test_snekbox.py +++ b/tests/bot/cogs/test_snekbox.py @@ -211,7 +211,7 @@ class SnekboxTests(unittest.IsolatedAsyncioTestCase): ctx = MockContext() ctx.invoke = AsyncMock() await self.cog.eval_command(self.cog, ctx=ctx, code='') - ctx.invoke.assert_called_once_with(self.bot.get_command("help"), "eval") + ctx.send_help.assert_called_once_with("eval") async def test_send_eval(self): """Test the send_eval function.""" |