(app, client)
| 88 | |
| 89 | |
| 90 | def test_specify_url_scheme(app, client): |
| 91 | @app.route("/") |
| 92 | def index(): |
| 93 | return flask.request.url |
| 94 | |
| 95 | ctx = app.test_request_context(url_scheme="https") |
| 96 | assert ctx.request.url == "https://localhost/" |
| 97 | |
| 98 | rv = client.get("/", url_scheme="https") |
| 99 | assert rv.data == b"https://localhost/" |
| 100 | |
| 101 | |
| 102 | def test_path_is_url(app): |
nothing calls this directly
no test coverage detected