mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 19:12:40 +01:00
Reactivate test of LyricsCom and MusiXmatch sources
This commit is contained in:
parent
f53ab801b8
commit
8f32bfed82
1 changed files with 7 additions and 5 deletions
|
|
@ -246,9 +246,10 @@ class LyricsPluginSourcesTest(LyricsGoogleBaseTest):
|
|||
|
||||
DEFAULT_SOURCES = [
|
||||
dict(DEFAULT_SONG, backend=lyrics.LyricsWiki),
|
||||
# dict(artist=u'Santana', title=u'Black magic woman',
|
||||
# backend=lyrics.MusiXmatch),
|
||||
# dict(DEFAULT_SONG, backend=lyrics.Genius),
|
||||
dict(DEFAULT_SONG, backend=lyrics.LyricsCom),
|
||||
dict(artist=u'Santana', title=u'Black magic woman',
|
||||
backend=lyrics.MusiXmatch),
|
||||
dict(DEFAULT_SONG, backend=lyrics.Genius),
|
||||
]
|
||||
|
||||
GOOGLE_SOURCES = [
|
||||
|
|
@ -361,8 +362,9 @@ class LyricsGooglePluginMachineryTest(LyricsGoogleBaseTest):
|
|||
html = raw_backend.fetch_url(url)
|
||||
soup = BeautifulSoup(html, "html.parser",
|
||||
parse_only=SoupStrainer('title'))
|
||||
self.assertEqual(google.is_page_candidate(url, soup.title.string,
|
||||
s['title'], s['artist']), True, url)
|
||||
self.assertEqual(
|
||||
google.is_page_candidate(url, soup.title.string,
|
||||
s['title'], s['artist']), True, url)
|
||||
|
||||
def test_is_page_candidate_fuzzy_match(self):
|
||||
"""Test matching html page title with song infos -- when song infos are
|
||||
|
|
|
|||
Loading…
Reference in a new issue