Skip to content

Commit

Permalink
Fix test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lmartinking committed Mar 16, 2024
1 parent 47e59e7 commit ea47b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def test_on_message_normal_message(bot_user, stats, cmd):
await DuckBot().on_message(message)

assert cmd.call_count == 0
assert stats.process_message.called_once_with(message.channel.guild, message.channel, message.author, message)
assert await stats.process_message.called_once_with(message.channel.guild, message.channel, message.author, message)


@pytest.mark.asyncio
Expand All @@ -47,7 +47,7 @@ async def test_on_message_command_message(bot_user, stats, cmd):
await bot.on_message(message)

assert stats.call_count == 0
assert cmd.process_message.called_once_with(message.channel.guild, message.channel, message.author, message, bot=bot)
assert await cmd.process_message.called_once_with(message.channel.guild, message.channel, message.author, message, bot=bot)


@pytest.mark.asyncio
Expand Down

0 comments on commit ea47b28

Please sign in to comment.