def setUp(self):
     icons.init(os.path.join(os.path.dirname(__file__), 'icons'))
     names.names_from_json(
         open(os.path.join(os.path.dirname(__file__),
                           'test-names.json'), 'r'))
     recipe.Recipe.recipes_from_json(
         open(os.path.join(os.path.dirname(__file__),
                           'test-recipe.json'), 'r'))
 def setUp(self):
     names.names_from_json(
         open(os.path.join(os.path.dirname(__file__),
                           'test-names.json'), 'r'))
"""Initialization script for App Engine scripts.

See https://cloud.google.com/appengine/docs/python/tools/appengineconfig?csw=1#Python_Module_Configuration
"""

from appengine import icons

from factorio import names
from factorio import recipe

icons.init('factorio-data/icons')
names.names_from_json(open('factorio-data/names.json', 'r'))
recipe.Recipe.recipes_from_json(open('factorio-data/recipes.json', 'r'))