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