mirror of
https://github.com/beetbox/beets.git
synced 2026-02-12 10:22:13 +01:00
fetchart: adapt test to earlier config read
This commit is contained in:
parent
aaf614c869
commit
7322e212a4
2 changed files with 3 additions and 8 deletions
|
|
@ -297,8 +297,8 @@ class GoogleImages(RemoteArtSource):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(RemoteArtSource, self).__init__(*args, **kwargs)
|
||||
self.key: self._config['google_key'].get(),
|
||||
self.cx: self._config['google_engine'].get(),
|
||||
self.key = self._config['google_key'].get(),
|
||||
self.cx = self._config['google_engine'].get(),
|
||||
|
||||
def get(self, album, extra):
|
||||
"""Return art URL from google custom search engine
|
||||
|
|
|
|||
|
|
@ -367,12 +367,7 @@ class ArtImporterTest(UseThePlugin):
|
|||
self.assertExists(self.art_file)
|
||||
|
||||
def test_delete_original_file(self):
|
||||
config['import']['delete'] = True
|
||||
self._fetch_art(True)
|
||||
self.assertNotExists(self.art_file)
|
||||
|
||||
def test_move_original_file(self):
|
||||
config['import']['move'] = True
|
||||
self.plugin.src_removed = True
|
||||
self._fetch_art(True)
|
||||
self.assertNotExists(self.art_file)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue