コード例 #1
0
def pytest_configure(config):
    app = Application('test')
    with app.app_context():
        db.create_all()
コード例 #2
0
ファイル: manage.py プロジェクト: RedBulli/MonkeyBook
def syncdb():
    """Synchronize the models with the database."""
    app = Application()
    with app.app_context():
        db.drop_all()
        db.create_all()
コード例 #3
0
ファイル: manage.py プロジェクト: RedBulli/MonkeyBook
def syncdb():
    """Synchronize the models with the database."""
    app = Application()
    with app.app_context():
        db.drop_all()
        db.create_all()