Better test assertion

This commit is contained in:
ekzyis 2021-09-25 20:41:33 +02:00
parent 01cc686520
commit 57fbd247da
1 changed files with 2 additions and 2 deletions

View File

@ -94,5 +94,5 @@ async def test_bot_playback(mbot, ctx):
ctx.voice_client.play.call_args.kwargs["after"](None) # Execute callback for song finish event
await asyncio.sleep(0)
assert \
ffmpeg_pcm_audio.call_args.args == (url,), \
f"FFmpegPCMAudio was not called with {url}"
ctx.voice_client.play.call_args.args == (time_of_dying_audio,), \
"Did not queue next song"