Example #1
0
 def setUpClass(cls):
     """ These run once before Test suite """
     app.debug = False
     # Set up the test database
     app.config[keys.KEY_SQL_ALC] = DATABASE_URI
     Inventory.init_db(app)
Example #2
0
def init_db(dbname=keys.KEY_DB_NAME):
    """ Initlaize the model """
    Inventory.init_db(app)
Example #3
0
def init_db():
    """ Initialies the SQLAlchemy app """
    # global app
    Inventory.init_db(app)