Example #1
0
 def setUpClass(cls):
     """ This runs once before the entire test suite """
     app.config['TESTING'] = True
     app.config['DEBUG'] = False
     app.config["SQLALCHEMY_DATABASE_URI"] = DATABASE_URI
     app.logger.setLevel(logging.CRITICAL)
     Account.init_db(app)
Example #2
0
def init_db():
    """ Initialies the SQLAlchemy app """
    global app
    Account.init_db(app)