예제 #1
0
def create_app():
    from src import bootstrap

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

    return app
예제 #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
예제 #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
예제 #4
0
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
예제 #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