Skip to content

Commit

Permalink
格式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHJK committed Jun 11, 2019
1 parent ccbf3ca commit 6df65cc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
from music_dl import config

config.init()
gettext.install('music-dl', 'locale')
gettext.install("music-dl", "locale")
1 change: 1 addition & 0 deletions tests/test_addon_baidu.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from music_dl.addons import baidu


def test_baidu():
songs_list = baidu.search("许巍")
assert songs_list is not None
2 changes: 1 addition & 1 deletion tests/test_addon_kugou.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

def test_kugou():
songs_list = kugou.search("周杰伦")
assert songs_list is not None
assert songs_list is not None
2 changes: 1 addition & 1 deletion tests/test_addon_netease.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

def test_netease():
songs_list = netease.search("谢春花")
assert songs_list is not None
assert songs_list is not None
2 changes: 1 addition & 1 deletion tests/test_addon_qq.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

def test_qq():
songs_list = qq.search("周杰伦")
assert songs_list is not None
assert songs_list is not None
1 change: 1 addition & 0 deletions tests/test_song.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from music_dl.song import BasicSong
from music_dl import config


def test_music(capsys):
config.init()
config.set("outdir", "/tmp")
Expand Down
3 changes: 3 additions & 0 deletions tests/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@

from music_dl.source import MusicSource


def test_search():
ms = MusicSource()
songs_list = ms.search("五月天", ["baidu", "kugou", "netease", "qq"])
assert songs_list is not None


def test_single():
ms = MusicSource()
song = ms.single("https://music.163.com/#/song?id=26427663")
assert song is not None


def test_playlist():
ms = MusicSource()
songs_list = ms.playlist("https://music.163.com/#/playlist?id=2602222983")
Expand Down

0 comments on commit 6df65cc

Please sign in to comment.