From ea47b28fa341140dbc4252c0462285c2a0260f6b Mon Sep 17 00:00:00 2001 From: Lucas Martin-King Date: Sat, 16 Mar 2024 22:19:17 +1100 Subject: [PATCH] Fix test warning --- tests/test_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_bot.py b/tests/test_bot.py index ff0647d..769b81a 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -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 @@ -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