コード例 #1
0
def db(app):
    """Fixture database object, shared by all tests."""
    from boac.models import development_db
    # Drop all tables before re-loading the schemas.
    # If we dropped at teardown instead, an interrupted test run would block the next test run.
    development_db.clear()
    return development_db.load(load_test_data=True)
コード例 #2
0
ファイル: run.py プロジェクト: pauline2k/boac
def initdb():
    from boac.models import development_db
    development_db.load()