Esempio n. 1
0
def create_app():
    from src import bootstrap

    # creates a test client
    app = bootstrap(use_default_error=True, testing=True).app

    return app
Esempio n. 2
0
def create_app():
    # set var for mock service
    # creates a test client
    app = bootstrap().app
    # propagate the exceptions to the test client
    app.config.update({"TESTING": True})

    return app
Esempio n. 3
0
def create_app():
    from src import bootstrap
    # creates a test client
    app = bootstrap(use_default_error=True, testing=True).app
    # propagate the exceptions to the test client
    app.config.update({"TESTING": True})

    return app
def create_app():
    from src import bootstrap
    # creates a test client
    app = bootstrap(use_default_error=True).app
    # propagate the exceptions to the test client
    app.config.update({"TESTING": True, "TESTSERVER": "http://localhost:3000"})

    return app
Esempio n. 5
0
def create_app():
    # creates a test client
    app = bootstrap(
        use_optimizer={
            "compress": False,
            "minify": False
        },
        use_default_error=True,
        testing=address,
    ).app
    # propagate the exceptions to the test client
    app.config.update({"TESTING": True})

    return app