mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Fix download test
This commit is contained in:
@@ -11,6 +11,7 @@ def song(input_song, output_song, avconv, verbose):
|
||||
else:
|
||||
convert_with_FFmpeg(input_song, output_song, verbose)
|
||||
os.remove('Music/' + input_song)
|
||||
return True
|
||||
|
||||
def convert_with_avconv(input_song, output_song, verbose):
|
||||
# different path for windows
|
||||
|
||||
@@ -262,6 +262,8 @@ def grab_single(raw_song, number=None):
|
||||
|
||||
class Args(object):
|
||||
manual = False
|
||||
input_ext = '.m4a'
|
||||
output_ext = '.mp3'
|
||||
|
||||
args = Args()
|
||||
# token is mandatory when using Spotify's API
|
||||
|
||||
@@ -31,5 +31,5 @@ def test_check_exists():
|
||||
def test_download():
|
||||
expect_download = True
|
||||
content = spotdl.go_pafy(raw_song)
|
||||
download = download_song(content)
|
||||
download = spotdl.download_song(content)
|
||||
assert download == expect_download
|
||||
|
||||
Reference in New Issue
Block a user