def setUp(self): settings.DATABASE = 'flaskengine_test' self.app = flaskengine.app.test_client() self.db = flaskengine.connect_db()
def before_request(): g.db = connect_db()