diff --git a/examples/pkce_login.py b/examples/pkce_example.py similarity index 96% rename from examples/pkce_login.py rename to examples/pkce_example.py index 05f3c02..451a691 100644 --- a/examples/pkce_login.py +++ b/examples/pkce_example.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . # -"""pkce_login.py: A simple example script that describes how to use PKCE login and MPEG-DASH streams""" +"""pkce_example.py: A simple example script that describes how to use PKCE login and MPEG-DASH streams""" import tidalapi from tidalapi import Quality diff --git a/tests/test_album.py b/tests/test_album.py index a783444..00dd264 100644 --- a/tests/test_album.py +++ b/tests/test_album.py @@ -101,11 +101,16 @@ def test_no_release_date(session): ) -def test_default_image_used_if_no_cover_art(mocker): - # TODO find an example if there still are any. - album = Album(mocker.Mock(), None) - assert album.cover is None - assert album.image(1280) == tidalapi.album.DEFAULT_ALBUM_IMAGE +def test_default_image_not_used_on_albums_with_cover_art(session): + album = session.album(108043414) + assert album.cover is not None + default_album_url = "https://resources.tidal.com/images/%s/%ix%i.jpg" % ( + tidalapi.album.DEFAULT_ALBUM_IMG.replace("-", "/"), + 1280, + 1280, + ) + # Album should not use default album art + assert album.image(1280) != default_album_url def test_similar(session): diff --git a/tests/test_media.py b/tests/test_media.py index 324cbe8..75cdb6c 100644 --- a/tests/test_media.py +++ b/tests/test_media.py @@ -69,8 +69,8 @@ def test_track_url(session): def test_lyrics(session): track = session.track(56480040) lyrics = track.lyrics() - assert "Think we're there" in lyrics.text - assert "Think we're there" in lyrics.subtitles + assert "I think we're there" in lyrics.text + assert "I think we're there" in lyrics.subtitles assert lyrics.right_to_left is False