示例#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'])
示例#2
0
 def setUpClass(cls):
     """
     Initialize the encryption engine with a test key.
     """
     init_config(configfiles=[TEST_INI])
     init_logging(configfiles=[LOGGING_INI])
示例#3
0
def setup_app(options):
    """ Dependency task to initialize runtime configuration. """
    init_config()
    init_logging()