def setUp(self): self.app = create_app("testing") self.client = self.app.test_client() self._ctx = self.app.test_request_context() self._ctx.push() db.create_all()
def init_db(): db.create_all()