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