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

Function test_session_refresh_vary

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

Source from the content-addressed store, hash-verified

572
573
574def test_session_refresh_vary(app, client):
575 @app.get("/login")
576 def login():
577 flask.session["user_id"] = 1
578 flask.session.permanent = True
579 return ""
580
581 @app.get("/ignored")
582 def ignored():
583 return ""
584
585 rv = client.get("/login")
586 assert rv.headers["Vary"] == "Cookie"
587 rv = client.get("/ignored")
588 assert rv.headers["Vary"] == "Cookie"
589
590
591def test_flashes(app, req_ctx):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected