Fix download test

This commit is contained in:
Ritiek
2017-06-25 01:16:04 +05:30
parent 142d14118b
commit 93244e46ec
3 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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