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

Function set

tests/test_basic.py:236–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234def test_session(app, client):
235 @app.route("/set", methods=["POST"])
236 def set():
237 assert not flask.session.accessed
238 assert not flask.session.modified
239 flask.session["value"] = flask.request.form["value"]
240 assert flask.session.accessed
241 assert flask.session.modified
242 return "value set"
243
244 @app.route("/get")
245 def get():

Callers 6

test_appsFunction · 0.70
list_commandsMethod · 0.50
routes_commandFunction · 0.50
list_templatesMethod · 0.50
__init_subclass__Method · 0.50
add_url_ruleMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected