Exemple #1
0
def party_app():
    """Provide a party web application."""
    app = create_app(CONFIG_FILENAME_TEST_PARTY)
    yield app
Exemple #2
0
def admin_app():
    """Provide the admin web application."""
    app = create_app(CONFIG_FILENAME_TEST_ADMIN)
    yield app
Exemple #3
0
 def _wrapper(**config_overrides):
     return create_app(CONFIG_FILENAME_TEST_ADMIN, config_overrides)
Exemple #4
0
def admin_app_without_db(db):
    app = create_app(CONFIG_FILENAME_TEST_ADMIN)
    with app.app_context():
        yield app
Exemple #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)