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

Function get

tests/test_basic.py:245–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243
244 @app.route("/get")
245 def get():
246 assert not flask.session.accessed
247 assert not flask.session.modified
248 v = flask.session.get("value", "None")
249 assert flask.session.accessed
250 assert not flask.session.modified
251 return v
252
253 assert client.post("/set", data={"value": "42"}).data == b"value set"
254 assert client.get("/get").data == b"42"

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected