Skip to content
Myr

add test for build error special values

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 19fbe3a · Browse files · 1 file+17 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+17 added−0 removed

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:tests/test_basic.py+17 added
1129 unmodified lines
1130 with app.test_request_context():1131 pytest.raises(BuildError, flask.url_for, 'not.existing')113211331134def test_url_for_passes_special_values_to_build_error_handler():1135 app = flask.Flask(__name__)11361137 @app.url_build_error_handlers.append1138 def handler(error, endpoint, values):1139 assert values == {1140 '_external': False,1141 '_anchor': None,1142 '_method': None,1143 '_scheme': None,1144 }1145 return 'handled'11461147 with app.test_request_context():1148 flask.url_for('/')114911501151def test_custom_converters():1152 from werkzeug.routing import BaseConverter11531154 class ListConverter(BaseConverter):
599 unmodified lines