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

Function test_get_method_on_g

tests/test_basic.py:1731–1736  ·  view source on GitHub ↗
(app_ctx)

Source from the content-addressed store, hash-verified

1729
1730
1731def test_get_method_on_g(app_ctx):
1732 assert flask.g.get("x") is None
1733 assert flask.g.get("x", 11) == 11
1734 flask.g.x = 42
1735 assert flask.g.get("x") == 42
1736 assert flask.g.x == 42
1737
1738
1739def test_g_iteration_protocol(app_ctx):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected