(self, e)
| 242 | return app |
| 243 | |
| 244 | def report_error(self, e): |
| 245 | original = getattr(e, "original_exception", None) |
| 246 | |
| 247 | if original is not None: |
| 248 | return f"wrapped {type(original).__name__}" |
| 249 | |
| 250 | return f"direct {type(e).__name__}" |
| 251 | |
| 252 | @pytest.mark.parametrize("to_handle", (InternalServerError, 500)) |
| 253 | def test_handle_class_or_code(self, app, client, to_handle): |
no outgoing calls
no test coverage detected