(app, req_ctx)
| 1330 | |
| 1331 | |
| 1332 | def test_url_generation(app, req_ctx): |
| 1333 | @app.route("/hello/<name>", methods=["POST"]) |
| 1334 | def hello(): |
| 1335 | pass |
| 1336 | |
| 1337 | assert flask.url_for("hello", name="test x") == "/hello/test%20x" |
| 1338 | assert ( |
| 1339 | flask.url_for("hello", name="test x", _external=True) |
| 1340 | == "http://localhost/hello/test%20x" |
| 1341 | ) |
| 1342 | |
| 1343 | |
| 1344 | def test_build_error_handler(app): |