def setUp(self): app.config.from_object(config.TestConfig) self._app = app self.app = app.test_client() self.db = db with app.app_context(): initdb()
def createdb(): initdb()