[booblyrics] able to search by artist or songtitle
This commit is contained in:
parent
74e6e30b55
commit
0628802b72
6 changed files with 66 additions and 18 deletions
|
|
@ -23,8 +23,8 @@ from weboob.capabilities.base import NotLoaded
|
|||
class SeeklyricsTest(BackendTest):
|
||||
BACKEND = 'seeklyrics'
|
||||
|
||||
def test_search_n_get(self):
|
||||
l_lyrics = list(self.backend.iter_lyrics('Complainte'))
|
||||
def test_search_song_n_get(self):
|
||||
l_lyrics = list(self.backend.iter_lyrics('song','Complainte'))
|
||||
for songlyrics in l_lyrics:
|
||||
assert songlyrics.id
|
||||
assert songlyrics.title
|
||||
|
|
@ -36,3 +36,11 @@ class SeeklyricsTest(BackendTest):
|
|||
assert full_lyr.artist
|
||||
assert full_lyr.content is not NotLoaded
|
||||
|
||||
|
||||
def test_search_artist(self):
|
||||
l_lyrics = list(self.backend.iter_lyrics('artist','boris vian'))
|
||||
for songlyrics in l_lyrics:
|
||||
assert songlyrics.id
|
||||
assert songlyrics.title
|
||||
assert songlyrics.artist
|
||||
assert songlyrics.content is NotLoaded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue