MCPcopy
hub / github.com/pallets/flask / test_app_context_provides_current_app

Function test_app_context_provides_current_app

tests/test_appctx.py:38–41  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

36
37
38def test_app_context_provides_current_app(app):
39 with app.app_context():
40 assert flask.current_app._get_current_object() is app
41 assert not flask.current_app
42
43
44def test_app_tearing_down(app):

Callers

nothing calls this directly

Calls 1

app_contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…