def test_subhub(): """ Create an instance of the hub app and validate it is a FlaskApp """ app = create_app() logger.debug("g", g=dir(g)) assert isinstance(app, connexion.FlaskApp)
def app(dynamodb): os.environ["DYNALITE_URL"] = dynamodb app = create_app() with app.app.app_context(): g.hub_table = app.app.hub_table g.subhub_deleted_users = app.app.subhub_deleted_users yield app
# -*- coding: utf-8 -*- """Create an application instance.""" from hub.app import create_app app = create_app()
def app(): app = create_app() with app.app.app_context(): g.hub_table = app.app.hub_table g.subhub_deleted_users = app.app.subhub_deleted_users yield app
def test_create_app(): app = create_app() assert app
def app(): app = create_app() with app.app.app_context(): g.hub_table = app.app.hub_table yield app
def setUp(self) -> None: self.app = create_app() self.client = self.app.app.test_client()
def test_create_app(): app = create_app() assert app # subhub_error = app.display_subhub_errors("bad things") print(f"subhub error {dir(app)} app= {app}")