def __init__(self, screen): self.num_rounds = 6 self.current_round = 1 self.num_green_tiles = 7 self.num_brown_non_city_tiles = 2 self.num_brown_city_tiles = 2 self.city_levels = [None] * 2 self.city_levels[0] = 5 self.city_levels[1] = 8 self.time_of_day = TIME_DAY self.advanced_actions_offer = advanced_actions.AdvancedActions() self.monestary_advanced_actions_offer = advanced_actions.AdvancedActions( ) self.advanced_actions_discard = [] self.spells_offer = spells.Spells() self.spells_discard = [] self.artifacts_offer = artifacts.Artifacts() self.artifacts_discard = [] self.units_grey_offer = units.GreyUnits self.units_grey_discard = [] self.units_gold_offer = units.GoldUnits self.units_gold_discard = [] self.num_die = 3 self.mana_dice = [] for i in range(self.num_die): self.mana_dice.append(mana_die.ManaDie()) self.magnify_collection = [] self.tile_group = pygame.sprite.Group() self.token_group = pygame.sprite.Group() self.card_group = pygame.sprite.Group() self.player_group = pygame.sprite.GroupSingle() self.dice_group = pygame.sprite.Group()
import json import pytest import os import authentication import admission import deployments import artifacts import inventory import device_authentication logger = logging.getLogger('root') auth = authentication.Authentication() adm = admission.Admission(auth) deploy = deployments.Deployments(auth, adm) image = artifacts.Artifacts() inv = inventory.Inventory(auth) deviceauth = device_authentication.DeviceAuthentication(auth) # -- When adding something here, also add a reset method and add it below -- def reset_mender_api(): auth.reset() adm.reset() deploy.reset() image.reset() inv.reset() deviceauth.reset() reset_mender_api()