Add assertion message
This commit is contained in:
parent
068e65f468
commit
e7de722d24
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue