コード例 #1
0
def frontend_app():
    """Set up global front-end app for functional tests

    Initialized once per test-run
    """
    app = create_frontend_app(config.TESTING_CONF_PATH)
    with app.app_context():
        setup_app(app)
        setup_db()
        yield app
        teardown_db()
コード例 #2
0
def setup():
    # Setup the database
    setup_app()
コード例 #3
0
def setup():
    # Setup the database
    setup_app()
コード例 #4
0
ファイル: __init__.py プロジェクト: imclab/skylines
def setup():
    # Setup the Flask app
    app.add_web_components()

    # Setup the database
    setup_app()
コード例 #5
0
ファイル: __init__.py プロジェクト: imclab/skylines
def setup():
    # Setup the Flask app
    app.add_web_components()

    # Setup the database
    setup_app()