(app)
| 1368 | |
| 1369 | |
| 1370 | def test_build_error_handler_reraise(app): |
| 1371 | # Test a custom handler which reraises the BuildError |
| 1372 | def handler_raises_build_error(error, endpoint, values): |
| 1373 | raise error |
| 1374 | |
| 1375 | app.url_build_error_handlers.append(handler_raises_build_error) |
| 1376 | |
| 1377 | with app.test_request_context(): |
| 1378 | pytest.raises(BuildError, flask.url_for, "not.existing") |
| 1379 | |
| 1380 | |
| 1381 | def test_url_for_passes_special_values_to_build_error_handler(app): |
nothing calls this directly
no test coverage detected