mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Changed test track to one whose lyrics are found (#400)
* Changed test track to one whose lyrics are found * Fixed incorrect values * Update playlists test to reflect change in playlist
This commit is contained in:
committed by
Ritiek Malhotra
parent
2b42f0b3a1
commit
7d321d9616
@@ -11,7 +11,7 @@ ARTIST_URL = "https://open.spotify.com/artist/4dpARuHxo51G3z768sgnrY"
|
||||
|
||||
|
||||
def test_user_playlists(tmpdir, monkeypatch):
|
||||
expect_tracks = 14
|
||||
expect_tracks = 21
|
||||
text_file = os.path.join(str(tmpdir), "test_us.txt")
|
||||
monkeypatch.setattr("builtins.input", lambda x: 1)
|
||||
spotify_tools.write_user_playlist("alex", text_file)
|
||||
@@ -41,7 +41,7 @@ def test_album(tmpdir):
|
||||
def test_all_albums(tmpdir):
|
||||
#current number of tracks on spotify since as of 10/10/2018
|
||||
#in US market only
|
||||
expect_tracks = 49
|
||||
expect_tracks = 49
|
||||
global text_file
|
||||
text_file = os.path.join(str(tmpdir), 'test_ab.txt')
|
||||
spotify_tools.write_all_albums_from_artist(ARTIST_URL, text_file)
|
||||
|
||||
@@ -12,10 +12,10 @@ import loader
|
||||
|
||||
loader.load_defaults()
|
||||
|
||||
TRACK_URL = "http://open.spotify.com/track/0JlS7BXXD07hRmevDnbPDU"
|
||||
EXPECTED_TITLE = "David André Østby - Intro"
|
||||
EXPECTED_YT_TITLE = "Intro - David André Østby"
|
||||
EXPECTED_YT_URL = "http://youtube.com/watch?v=rg1wfcty0BA"
|
||||
TRACK_URL = "https://open.spotify.com/track/2nT5m433s95hvYJH4S7ont"
|
||||
EXPECTED_TITLE = "Eminem - Curtains Up"
|
||||
EXPECTED_YT_TITLE = "Eminem - Encore - Curtains Up"
|
||||
EXPECTED_YT_URL = "http://youtube.com/watch?v=0BZ6JYwrl2Y"
|
||||
|
||||
|
||||
def test_metadata():
|
||||
|
||||
Reference in New Issue
Block a user