Exemplo n.º 1
0
def setup_alembic():
    global config, context
    
    pwconfig.init_config()
    pwconfig.init_logging()
    
    #context.config.config_file_name = None
    context.config.set_main_option("sqlalchemy.url", pwconfig.config['sqlalchemy.url'])
Exemplo n.º 2
0
 def setUpClass(cls):
     """
     Initialize the encryption engine with a test key.
     """
     init_config(configfiles=[TEST_INI])
     init_logging(configfiles=[LOGGING_INI])
Exemplo n.º 3
0
def setup_app(options):
    """ Dependency task to initialize runtime configuration. """
    init_config()
    init_logging()