示例#1
0
def party_app():
    """Provide a party web application."""
    app = create_app(CONFIG_FILENAME_TEST_PARTY)
    yield app
示例#2
0
def admin_app():
    """Provide the admin web application."""
    app = create_app(CONFIG_FILENAME_TEST_ADMIN)
    yield app
示例#3
0
 def _wrapper(**config_overrides):
     return create_app(CONFIG_FILENAME_TEST_ADMIN, config_overrides)
示例#4
0
文件: conftest.py 项目: leathe/byceps
def admin_app_without_db(db):
    app = create_app(CONFIG_FILENAME_TEST_ADMIN)
    with app.app_context():
        yield app
示例#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)