예제 #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 app():
    """Set up global front-end app for functional tests

    Initialized once per test-run
    """
    return create_frontend_app(config.TESTING_CONF_PATH)