mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
* Move spotdl.py inside spotdl directory * Fix Dockerfile * Re-upload FFmpeg binary * Small fixes ;)
19 lines
490 B
Python
19 lines
490 B
Python
from spotdl import const
|
|
|
|
from spotdl import spotdl
|
|
import loader
|
|
import os
|
|
|
|
loader.load_defaults()
|
|
|
|
|
|
def test_dry_download_list(tmpdir):
|
|
song = 'http://open.spotify.com/track/0JlS7BXXD07hRmevDnbPDU'
|
|
const.args.folder = str(tmpdir)
|
|
const.args.dry_run = True
|
|
file_path = os.path.join(const.args.folder, 'test_list.txt')
|
|
with open(file_path, 'w') as tin:
|
|
tin.write(song)
|
|
downloaded_song, *_ = spotdl.download_list(file_path)
|
|
assert downloaded_song == song
|