Пример #1
0
def test_download():
    expect_download = True
    # prerequisites for determining filename
    content = spotdl.go_pafy(raw_song)
    meta_tags = spotdl.generate_metadata(raw_song)
    songname = spotdl.generate_songname(meta_tags)
    file_name = spotdl.misc.sanitize_title(songname)
    download = spotdl.download_song(file_name, content)
    assert download == expect_download
Пример #2
0
def test_download():
    expect_download = True
    # prerequisites for determining filename
    file_name = spotdl.internals.sanitize_title(title)
    download = spotdl.download_song(file_name, content)
    assert download == expect_download
Пример #3
0
def test_download():
    expect_download = True
    # prerequisites for determining filename
    content = spotdl.go_pafy(raw_song, meta_tags)
    download = spotdl.download_song(file_name, content)
    assert download == expect_download