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

Function test_session_transactions_keep_context

tests/test_testing.py:185–190  ·  view source on GitHub ↗
(app, client, req_ctx)

Source from the content-addressed store, hash-verified

183
184
185def test_session_transactions_keep_context(app, client, req_ctx):
186 client.get("/")
187 req = flask.request._get_current_object()
188 assert req is not None
189 with client.session_transaction():
190 assert req is flask.request._get_current_object()
191
192
193def test_session_transaction_needs_cookies(app):

Callers

nothing calls this directly

Calls 2

session_transactionMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…