def setUp(self): self.ctx = app.test_request_context() self.ctx.push() db.drop_all() db.create_all() init_data() self.client = app.test_client()
def create(env): "Creates database tables from sqlalchemy models" init_for(env) db.create_all()