(self, app)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected