Beispiel #1
0
 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()
Beispiel #2
0
def create(env):
    "Creates database tables from sqlalchemy models"
    init_for(env)
    db.create_all()