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