(app)
| 6 | |
| 7 | |
| 8 | def test_basic_url_generation(app): |
| 9 | app.config["SERVER_NAME"] = "localhost" |
| 10 | app.config["PREFERRED_URL_SCHEME"] = "https" |
| 11 | |
| 12 | @app.route("/") |
| 13 | def index(): |
| 14 | pass |
| 15 | |
| 16 | with app.app_context(): |
| 17 | rv = flask.url_for("index") |
| 18 | assert rv == "https://localhost/" |
| 19 | |
| 20 | |
| 21 | def test_url_generation_requires_server_name(app): |
nothing calls this directly
no test coverage detected