From e7de722d24b88b319f916c95bccb93c7d7a662a9 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 25 Sep 2021 18:06:01 +0200 Subject: [PATCH] Add assertion message --- test/test_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_bot.py b/test/test_bot.py index bddb1cb..4595652 100644 --- a/test/test_bot.py +++ b/test/test_bot.py @@ -11,7 +11,7 @@ async def test_bot_ensure_voice(mbot, ctx): ctx.voice_client = None ctx.author.voice = AsyncMock() await mbot.ensure_voice(ctx) - assert ctx.author.voice.channel.connect.call_count == 1 + assert ctx.author.voice.channel.connect.call_count == 1, "Did not connect to voice channel of author" ctx.reset_mock(return_value=True) # Error if author not inside a channel