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

Function test_build_error_handler_reraise

tests/test_basic.py:1370–1378  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

1368
1369
1370def 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
1381def test_url_for_passes_special_values_to_build_error_handler(app):

Callers

nothing calls this directly

Calls 1

test_request_contextMethod · 0.80

Tested by

no test coverage detected