diff --git a/tests/integrationtests/spotify/test_session.py b/tests/integrationtests/spotify/test_session.py index 6e71395..8c68ca4 100644 --- a/tests/integrationtests/spotify/test_session.py +++ b/tests/integrationtests/spotify/test_session.py @@ -79,7 +79,15 @@ def test_session_user(spotify_session): assert isinstance(spotify_session.user, User) -def test_session_playlists(spotify_session): +def test_session_load_playlist_not_existing(spotify_session): + assert spotify_session.load_playlist("foo") is None + + +def test_session_load_existing_playlist(spotify_session): + assert isinstance(spotify_session.load_playlist("37i9dQZF1DX4wta20PHgwo"), Playlist) + + +def test_session_load_playlists(spotify_session): assert all(isinstance(p, Playlist) for p in spotify_session.load_playlists()) diff --git a/tests/integrationtests/tidal/test_session.py b/tests/integrationtests/tidal/test_session.py index 0ae9e4e..09f71ca 100644 --- a/tests/integrationtests/tidal/test_session.py +++ b/tests/integrationtests/tidal/test_session.py @@ -76,6 +76,15 @@ def test_session_user(tidal_session): assert isinstance(tidal_session.user, User) +def test_session_load_not_existing_playlist(tidal_session): + assert tidal_session.load_playlist("foo") is None + + +def test_session_load_existing_playlist(tidal_session): + tidal_playlist = tidal_session.load_playlist("281820fd-30e6-4240-9356-e07244a37bc8") + assert isinstance(tidal_playlist, Playlist) + + def test_session_load_playlists(tidal_session): assert all(isinstance(p, Playlist) for p in tidal_session.load_playlists())