(app, client)
| 255 | |
| 256 | |
| 257 | def test_session_path(app, client): |
| 258 | app.config.update(APPLICATION_ROOT="/foo") |
| 259 | |
| 260 | @app.route("/") |
| 261 | def index(): |
| 262 | flask.session["testing"] = 42 |
| 263 | return "Hello World" |
| 264 | |
| 265 | rv = client.get("/", "http://example.com:8080/foo") |
| 266 | assert "path=/foo" in rv.headers["set-cookie"].lower() |
| 267 | |
| 268 | |
| 269 | def test_session_using_application_root(app, client): |