From 8f32bfed82ef7fcf8a3fd88ffe305230bc37d711 Mon Sep 17 00:00:00 2001 From: Fabrice Laporte Date: Wed, 3 May 2017 07:42:50 +0200 Subject: [PATCH] Reactivate test of LyricsCom and MusiXmatch sources --- test/test_lyrics.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/test_lyrics.py b/test/test_lyrics.py index e2e5958b1..a96551e75 100644 --- a/test/test_lyrics.py +++ b/test/test_lyrics.py @@ -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