def setUp(self): from the_tale.accounts import tt_api as accounts_tt_api from the_tale.accounts.achievements.storage import achievements_storage from the_tale.collections.storage import collections_storage, kits_storage, items_storage from the_tale.linguistics.storage import game_dictionary, game_lexicon, restrictions_storage from the_tale.game.prototypes import GameState from the_tale.game.persons import storage as persons_storage from the_tale.game.mobs import storage as mobs_storage from the_tale.game.companions import storage as companions_storage from the_tale.game.artifacts import storage as artifacts_storage from the_tale.game.heroes import storage as heroes_storage from the_tale.game.map.storage import map_info_storage from the_tale.game.places import storage as places_storage from the_tale.game.roads.storage import roads_storage, waymarks_storage accounts_tt_api.debug_clear_service() settings.refresh(force=True) heroes_storage.position_descriptions.clear() places_storage.places.clear() places_storage.buildings.clear() persons_storage.persons.clear() persons_storage.social_connections.clear() waymarks_storage.clear() roads_storage.clear() mobs_storage.mobs.clear() companions_storage.companions.clear() artifacts_storage.artifacts.clear() map_info_storage.clear() places_storage.resource_exchanges.clear() collections_storage.clear() kits_storage.clear() items_storage.clear() achievements_storage.clear() game_dictionary.clear() game_lexicon.clear() restrictions_storage.clear() GameState.start() from the_tale.blogs import conf as blogs_conf from the_tale.blogs import models as blogs_models for tag_id in blogs_conf.settings.DEFAULT_TAGS: blogs_models.Tag.objects.create(id=tag_id, name='{}'.format(tag_id), description='{}'.format(tag_id))
def setUp(self): from the_tale.accounts.achievements.storage import achievements_storage from the_tale.collections.storage import collections_storage, kits_storage, items_storage from the_tale.linguistics.storage import game_dictionary, game_lexicon, restrictions_storage from the_tale.game.prototypes import GameState from the_tale.game.persons import storage as persons_storage from the_tale.game.mobs.storage import mobs_storage from the_tale.game.companions import storage as companions_storage from the_tale.game.artifacts.storage import artifacts_storage from the_tale.game.heroes import storage as heroes_storage from the_tale.game.map.storage import map_info_storage from the_tale.game.places import storage as places_storage from the_tale.game.roads.storage import roads_storage, waymarks_storage settings.refresh(force=True) heroes_storage.position_descriptions.clear() places_storage.places.clear() places_storage.buildings.clear() persons_storage.persons.clear() persons_storage.social_connections.clear() waymarks_storage.clear() roads_storage.clear() mobs_storage.clear() companions_storage.companions.clear() artifacts_storage.clear() map_info_storage.clear() places_storage.resource_exchanges.clear() collections_storage.clear() kits_storage.clear() items_storage.clear() achievements_storage.clear() game_dictionary.clear() game_lexicon.clear() restrictions_storage.clear() GameState.start() from the_tale.blogs import conf as blogs_conf from the_tale.blogs import models as blogs_models for tag_id in blogs_conf.settings.DEFAULT_TAGS: blogs_models.Tag.objects.create(id=tag_id, name='{}'.format(tag_id), description='{}'.format(tag_id))
def setUp(self): from the_tale.accounts.achievements.storage import achievements_storage from the_tale.collections.storage import collections_storage, kits_storage, items_storage from the_tale.linguistics.storage import game_dictionary, game_lexicon, restrictions_storage from the_tale.game.prototypes import GameState from the_tale.game.persons import storage as persons_storage from the_tale.game.mobs.storage import mobs_storage from the_tale.game.companions import storage as companions_storage from the_tale.game.artifacts.storage import artifacts_storage from the_tale.game.heroes import storage as heroes_storage from the_tale.game.map.storage import map_info_storage from the_tale.game.map.places.storage import places_storage, buildings_storage, resource_exchange_storage from the_tale.game.map.roads.storage import roads_storage, waymarks_storage settings.refresh(force=True) heroes_storage.position_descriptions.clear() places_storage.clear() buildings_storage.clear() persons_storage.persons_storage.clear() persons_storage.social_connections.clear() waymarks_storage.clear() roads_storage.clear() mobs_storage.clear() companions_storage.companions.clear() artifacts_storage.clear() map_info_storage.clear() resource_exchange_storage.clear() collections_storage.clear() kits_storage.clear() items_storage.clear() achievements_storage.clear() game_dictionary.clear() game_lexicon.clear() restrictions_storage.clear() GameState.start()