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

Function test_session_transactions_keep_context

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

Source from the content-addressed store, hash-verified

194
195
196def test_session_transactions_keep_context(app, client, req_ctx):
197 client.get("/")
198 req = flask.request._get_current_object()
199 assert req is not None
200 with client.session_transaction():
201 assert req is flask.request._get_current_object()
202
203
204def 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