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