fetchart: adapt test to earlier config read

This commit is contained in:
wordofglass 2016-04-14 16:49:06 +02:00
parent aaf614c869
commit 7322e212a4
2 changed files with 3 additions and 8 deletions

View file

@ -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

View file

@ -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)