From b6c5c885504c807a9c4f72c1fdc5bbd917c8be73 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Mon, 3 Jun 2019 14:15:35 +0530 Subject: [PATCH] Fix tests for now and rephrase comments for clarity --- test/test_spotify_tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_spotify_tools.py b/test/test_spotify_tools.py index 4c9f510..e0bc28d 100644 --- a/test/test_spotify_tools.py +++ b/test/test_spotify_tools.py @@ -115,7 +115,7 @@ def test_write_playlist(tmpdir): assert tracks == expect_tracks -# XXX: Mock this test off if it fails in future +# XXX: Monkeypatch these tests if they fail in future class TestFetchAlbum: @pytest.fixture(scope="module") def album_fixture(self): @@ -131,7 +131,7 @@ class TestFetchAlbum: assert album_fixture["tracks"]["total"] == 15 -# XXX: Mock this test off if it fails in future +# XXX: Monkeypatch these tests if they fail in future class TestFetchAlbumsFromArtist: @pytest.fixture(scope="module") def albums_from_artist_fixture(self): @@ -141,7 +141,7 @@ class TestFetchAlbumsFromArtist: return albums def test_len(self, albums_from_artist_fixture): - assert len(albums_from_artist_fixture) == 52 + assert len(albums_from_artist_fixture) == 53 def test_zeroth_album_name(self, albums_from_artist_fixture): assert albums_from_artist_fixture[0]["name"] == "Revolution Radio"