mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 04:55:10 +01:00
Disable tests that do real requests to lyrics sites by default.
Set BEETS_TEST_LYRICS_SOURCES environment variable to '1' to not skip the tests.
This commit is contained in:
parent
d88cabc846
commit
fa9262d61b
1 changed files with 4 additions and 0 deletions
|
|
@ -295,6 +295,8 @@ class LyricsPluginSourcesTest(LyricsGoogleBaseTest):
|
|||
LyricsGoogleBaseTest.setUp(self)
|
||||
self.plugin = lyrics.LyricsPlugin()
|
||||
|
||||
@unittest.skipUnless(os.environ.get('BEETS_TEST_LYRICS_SOURCES', '0') == '1',
|
||||
'lyrics sources testing not enabled')
|
||||
def test_backend_sources_ok(self):
|
||||
"""Test default backends with songs known to exist in respective databases.
|
||||
"""
|
||||
|
|
@ -305,6 +307,8 @@ class LyricsPluginSourcesTest(LyricsGoogleBaseTest):
|
|||
errors.append(s['backend'].__name__)
|
||||
self.assertFalse(errors)
|
||||
|
||||
@unittest.skipUnless(os.environ.get('BEETS_TEST_LYRICS_SOURCES', '0') == '1',
|
||||
'lyrics sources testing not enabled')
|
||||
def test_google_sources_ok(self):
|
||||
"""Test if lyrics present on websites registered in beets google custom
|
||||
search engine are correctly scraped."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue