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

Function test_session_transaction_needs_cookies

tests/test_testing.py:193–198  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

191
192
193def test_session_transaction_needs_cookies(app):
194 c = app.test_client(use_cookies=False)
195
196 with pytest.raises(TypeError, match="Cookies are disabled."):
197 with c.session_transaction():
198 pass
199
200
201def test_test_client_context_binding(app, client):

Callers

nothing calls this directly

Calls 2

test_clientMethod · 0.80
session_transactionMethod · 0.80

Tested by

no test coverage detected