We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 305eb9a commit e87d6f4Copy full SHA for e87d6f4
1 file changed
test/plugins/test_smartplaylist.py
@@ -574,3 +574,20 @@ def test_splupdate(self):
574
for name in (b"my_playlist.m3u", b"all.m3u"):
575
with open(path.join(self.temp_dir, name), "rb") as f:
576
assert f.read() == self.item.path + b"\n"
577
+
578
+ def test_splupdate_unknown_playlist_error_is_sorted_and_quoted(self):
579
+ config["smartplaylist"]["playlists"].set(
580
+ [
581
+ {"name": "z last.m3u", "query": self.item.title},
582
+ {"name": "rock'n roll.m3u", "query": self.item.title},
583
+ {"name": "a one.m3u", "query": self.item.title},
584
+ ]
585
+ )
586
587
+ with pytest.raises(UserError) as exc_info:
588
+ self.run_with_output("splupdate", "tagada")
589
590
+ assert str(exc_info.value) == (
591
+ "No playlist matching any of "
592
+ "'a one.m3u' 'rock'\"'\"'n roll.m3u' 'z last.m3u' found"
593
0 commit comments