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)
def initdb(): from boac.models import development_db development_db.load()