Beispiel #1
0
def init_db():
    """ Initialies the SQLAlchemy app """
    global app
    Payment.init_db(app)
Beispiel #2
0
def init_db():
    """Initializes the SQLAlchemy app."""
    global app  # pylint: disable=global-statement, invalid-name
    Payment.init_db(app)
Beispiel #3
0
 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)
Beispiel #4
0
 def setUp(self):
     Payment.init_db(app)
     db.drop_all()  # clean up the last tests
     db.create_all()  # make our sqlalchemy tables