MCPcopy Create free account
hub / github.com/pallets/flask / test_session_path

Function test_session_path

tests/test_basic.py:257–266  ·  view source on GitHub ↗
(app, client)

Source from the content-addressed store, hash-verified

255
256
257def 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
269def test_session_using_application_root(app, client):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected