Add assertion message

This commit is contained in:
ekzyis 2021-09-25 18:06:01 +02:00
parent 068e65f468
commit e7de722d24
1 changed files with 1 additions and 1 deletions

View File

@ -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