Better test assertion
This commit is contained in:
parent
01cc686520
commit
57fbd247da
|
@ -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
|
ctx.voice_client.play.call_args.kwargs["after"](None) # Execute callback for song finish event
|
||||||
await asyncio.sleep(0)
|
await asyncio.sleep(0)
|
||||||
assert \
|
assert \
|
||||||
ffmpeg_pcm_audio.call_args.args == (url,), \
|
ctx.voice_client.play.call_args.args == (time_of_dying_audio,), \
|
||||||
f"FFmpegPCMAudio was not called with {url}"
|
"Did not queue next song"
|
||||||
|
|
Loading…
Reference in New Issue