def setUp(self): self.flask_app = flask_app self.app = flask_app.test_client() with self.flask_app.app_context(): rebuild_db()
def setUp(self): self.flask_app = create_app() self.app = self.flask_app.test_client() self.db = db with self.flask_app.app_context(): model.rebuild_db()
def setUp(self): super(HelperAPI, self).setUp() rebuild_db() self.create()