def __call__(self, app_settings, users, dry_run): roms = self.rom_finder.roms_for_consoles(app_settings.config, app_settings.consoles) provider = settings.image_provider(app_settings.config) grid_updater = steam_grid_updater.SteamGridUpdater(provider) for user in users: logger.info("::Updating grid images for U:%s" % user.user_id) grid_updater.update_artwork_for_rom_collection(user, roms, dry_run=dry_run)
def __call__(self, app_settings, users, dry_run): roms = self.rom_finder.roms_for_consoles( app_settings.config, app_settings.consoles, ) provider = settings.image_provider(app_settings.config) grid_updater = steam_grid_updater.SteamGridUpdater(provider) for user in users: logger.info("::Updating grid images for U:%s" % user.user_id) grid_updater.update_artwork_for_rom_collection(user, roms, dry_run=dry_run)
def test_image_provider(self, spec, classes): config = mock() config.provider_spec = spec result = settings.image_provider(config) self.assertEqual(classes, map(lambda p: p.__class__, result.providers))
def __init__(self, app_settings): provider = settings.image_provider(app_settings.config) self.grid_updater = steam_grid_updater.SteamGridUpdater(provider)
def test_image_provider(self, spec, classes): config = mock() config.provider_spec = spec result = settings.image_provider(config) self.assertEqual(classes, [p.__class__ for p in result.providers])