(app, client, app_ctx, req_ctx)
| 28 | |
| 29 | |
| 30 | def test_environ_defaults(app, client, app_ctx, req_ctx): |
| 31 | @app.route("/") |
| 32 | def index(): |
| 33 | return flask.request.url |
| 34 | |
| 35 | ctx = app.test_request_context() |
| 36 | assert ctx.request.url == "http://localhost/" |
| 37 | with client: |
| 38 | rv = client.get("/") |
| 39 | assert rv.data == b"http://localhost/" |
| 40 | |
| 41 | |
| 42 | def test_environ_base_default(app, client): |
nothing calls this directly
no test coverage detected