def setUp(self): """Initialize the database if it doesn't exist.""" global db_built if not db_built: ctx.drop_all() ctx.create_all() S.run(ctx) db_built = True
def build(self): """Build all data.""" from sanskrit import setup setup.run(self)