示例#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()