Example #1
0
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)
Example #2
0
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
Example #3
0
# -*- coding: utf-8 -*-
"""Create an application instance."""
from hub.app import create_app

app = create_app()
Example #4
0
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
Example #5
0
def test_create_app():
    app = create_app()
    assert app
Example #6
0
def app():
    app = create_app()
    with app.app.app_context():
        g.hub_table = app.app.hub_table
        yield app
Example #7
0
 def setUp(self) -> None:
     self.app = create_app()
     self.client = self.app.app.test_client()
Example #8
0
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}")