* fix #642: create_playlist: raise error when invalid characters are part of playlist title * add test * fix CI helper * fix CI helper * adjust workflow
This commit is contained in:
parent
e433b22231
commit
09ca398719
5 changed files with 21 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ import pytest
|
|||
from ytmusicapi import YTMusic
|
||||
from ytmusicapi.constants import SUPPORTED_LANGUAGES
|
||||
from ytmusicapi.enums import ResponseStatus
|
||||
from ytmusicapi.exceptions import YTMusicUserError
|
||||
|
||||
|
||||
class TestPlaylists:
|
||||
|
|
@ -113,6 +114,10 @@ class TestPlaylists:
|
|||
)
|
||||
assert response3 == "STATUS_SUCCEEDED", "Playlist edit 3 failed"
|
||||
|
||||
def test_create_playlist_invalid_title(self, yt_brand):
|
||||
with pytest.raises(YTMusicUserError, match="invalid characters"):
|
||||
yt_brand.create_playlist("test >", description="test")
|
||||
|
||||
def test_end2end(self, yt_brand, sample_video):
|
||||
playlist_id = yt_brand.create_playlist(
|
||||
"test",
|
||||
|
|
|
|||
Loading…
Reference in a new issue