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)
def init_db(dbname=keys.KEY_DB_NAME): """ Initlaize the model """ Inventory.init_db(app)
def init_db(): """ Initialies the SQLAlchemy app """ # global app Inventory.init_db(app)