Exemplo n.º 1
0
 def setUp(self):
     Product.init_db(app)
     db.drop_all()  # clean up the last tests
     db.create_all()  # make our sqlalchemy tables
Exemplo n.º 2
0
def init_db():
    """ Initialies the SQLAlchemy app """
    global app
    Product.init_db(app)