MCPcopy Create free account
hub / github.com/pallets/flask / app

Method app

tests/test_user_error_handler.py:224–242  ·  view source on GitHub ↗
(self, app)

Source from the content-addressed store, hash-verified

222
223 @pytest.fixture()
224 def app(self, app):
225 @app.route("/custom")
226 def do_custom():
227 raise self.Custom()
228
229 @app.route("/error")
230 def do_error():
231 raise KeyError()
232
233 @app.route("/abort")
234 def do_abort():
235 flask.abort(500)
236
237 @app.route("/raise")
238 def do_raise():
239 raise InternalServerError()
240
241 app.config["PROPAGATE_EXCEPTIONS"] = False
242 return app
243
244 def report_error(self, e):
245 original = getattr(e, "original_exception", None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected