From 0f2a86c883aa74e6b5f131269580af946ee0770a Mon Sep 17 00:00:00 2001 From: Jayden <23619946+Silverarmor@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:35:23 +1300 Subject: [PATCH] Update m3u tests --- tests/utils/test_m3u.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/utils/test_m3u.py b/tests/utils/test_m3u.py index dfa798a48..c74619fd6 100644 --- a/tests/utils/test_m3u.py +++ b/tests/utils/test_m3u.py @@ -14,8 +14,9 @@ def test_create_m3u_content(): assert content != "" assert len(content.split("\n")) > 5 - assert content.split("\n")[0].endswith("mp3.mp3") - + assert content.split("\n")[0] == "#EXTM3U" + assert content.split("\n")[1].startswith("#EXTINF:") + assert content.split("\n")[2].endswith(".mp3") def test_create_m3u_file(tmpdir, monkeypatch): monkeypatch.chdir(tmpdir)