From 2dcd8f4066610c61dd74ebdfaaf49183c795e2da Mon Sep 17 00:00:00 2001 From: Pierre Ayoub Date: Sun, 8 Mar 2026 08:57:24 +0100 Subject: [PATCH] fix(test): Linting issues in smartplaylist --- test/plugins/test_smartplaylist.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/plugins/test_smartplaylist.py b/test/plugins/test_smartplaylist.py index 212aba4f5..829556bdc 100644 --- a/test/plugins/test_smartplaylist.py +++ b/test/plugins/test_smartplaylist.py @@ -13,7 +13,7 @@ # included in all copies or substantial portions of the Software. -from os import path, remove +from os import path, remove, fsdecode from pathlib import Path from shutil import rmtree from tempfile import mkdtemp @@ -26,7 +26,7 @@ from beets.dbcore.query import FixedFieldSort, MultipleSort, NullSort from beets.library import Album, Item, parse_query_string from beets.test.helper import BeetsTestCase, IOMixin, PluginTestCase from beets.ui import UserError -from beets.util import CHAR_REPLACE, syspath +from beets.util import CHAR_REPLACE, syspath, bytestring_path from beetsplug.smartplaylist import SmartPlaylistPlugin @@ -512,9 +512,9 @@ class SmartPlaylistTest(BeetsTestCase): assert ( content - == b"#EXTM3U\n" - + b"#EXTINF:300,fake artist - fake title\n" - + b"http://beets:8337/files/tagada.mp3\n" + == (b"#EXTM3U\n" + b"#EXTINF:300,fake artist - fake title\n" + b"http://beets:8337/files/tagada.mp3\n") ) # Test when `dest_regen` is set to False: @@ -536,9 +536,9 @@ class SmartPlaylistTest(BeetsTestCase): assert ( content - == b"#EXTM3U\n" - + b"#EXTINF:300,fake artist - fake title\n" - + b"http://beets:8337/files/imported/path/with/dont/move/tagada.mp3\n" + == (b"#EXTM3U\n" + b"#EXTINF:300,fake artist - fake title\n" + b"http://beets:8337/files/imported/path/with/dont/move/tagada.mp3\n") )