def init_db(): """ Initialies the SQLAlchemy app """ global app Payment.init_db(app)
def init_db(): """Initializes the SQLAlchemy app.""" global app # pylint: disable=global-statement, invalid-name Payment.init_db(app)
def setUpClass(cls): """ These run once per Test suite """ app.debug = False # Set up the test database app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URI Payment.init_db(app)
def setUp(self): Payment.init_db(app) db.drop_all() # clean up the last tests db.create_all() # make our sqlalchemy tables