示例#1
0
文件: grid.py 项目: drglove/Ice
    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)
示例#2
0
    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)
示例#3
0
 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))
示例#4
0
 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))
示例#5
0
文件: grid.py 项目: KevinAnthony/Ice
 def __init__(self, app_settings):
     provider = settings.image_provider(app_settings.config)
     self.grid_updater = steam_grid_updater.SteamGridUpdater(provider)
示例#6
0
文件: grid.py 项目: KevinAnthony/Ice
 def __init__(self, app_settings):
   provider = settings.image_provider(app_settings.config)
   self.grid_updater = steam_grid_updater.SteamGridUpdater(provider)
示例#7
0
文件: settings_tests.py 项目: 2m/Ice
 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])