def create_app(self, app=app): app.config.from_object(TestingConfig) with app.app_context(): db.create_all() return app
def create_db(): """Creates the db tables.""" db.create_all()