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