diff --git a/test/test_smartplaylist.py b/test/test_smartplaylist.py index 084e0694d..fa8658ad3 100644 --- a/test/test_smartplaylist.py +++ b/test/test_smartplaylist.py @@ -150,8 +150,8 @@ class SmartPlaylistTest(unittest.TestCase): spl = SmartPlaylistPlugin() i = Mock(path=b'/tagada.mp3') - title_replacer = lambda pl, _: pl.replace(b'$title', b'ta:ga:da').decode() - i.evaluate_template.side_effect = title_replacer + i.evaluate_template.side_effect = \ + lambda pl, _: pl.replace(b'$title', b'ta:ga:da').decode() lib = Mock() lib.replacements = CHAR_REPLACE