コード例 #1
0
ファイル: server.py プロジェクト: DoWhileGeek/workwork
def create_app(config=None):
    app = Flask(__name__)

    if config is None:
        config = _config.load()
    app.config.update(config)

    register_error_handlers(app)

    app.register_blueprint(instance.blueprint)

    return app
コード例 #2
0
ファイル: test_config.py プロジェクト: DoWhileGeek/workwork
def test_config_load(config):
    assert _config.load() == config