Test spotify generated songname

This commit is contained in:
Ritiek
2017-06-25 00:04:21 +05:30
parent ae29ff8f87
commit 69634475ad
5 changed files with 27 additions and 11 deletions

9
test/test_spotify.py Normal file
View File

@@ -0,0 +1,9 @@
# -*- coding: UTF-8 -*-
import spotdl
def test_songname():
song = "http://open.spotify.com/track/2e0jnySVkYF1pvBlpoNX1Y"
expected_title = "David André Østby - Tilbake (SAEVIK Remix)"
title = spotdl.generate_songname(song)
assert title == expected_title