Beispiel #1
0
def party_app():
    """Provide a party web application."""
    app = create_app(CONFIG_FILENAME_TEST_PARTY)
    yield app
Beispiel #2
0
def admin_app():
    """Provide the admin web application."""
    app = create_app(CONFIG_FILENAME_TEST_ADMIN)
    yield app
Beispiel #3
0
 def _wrapper(**config_overrides):
     return create_app(CONFIG_FILENAME_TEST_ADMIN, config_overrides)
Beispiel #4
0
def admin_app_without_db(db):
    app = create_app(CONFIG_FILENAME_TEST_ADMIN)
    with app.app_context():
        yield app
Beispiel #5
0
def api_app_without_db(db):
    app = create_app(CONFIG_FILENAME_TEST_ADMIN, {'API_TOKEN': API_TOKEN})
    with app.app_context():
        yield app
 def setup(self):
     self.app = create_app(self.app_config, True)