Skip to content
Myr

Merge branch 'master' of github.com:mitsuhiko/flask

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parents 8861731, 7b899c8 · Browse files · 2 files+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−1 removed

  • other:+4 added−1 removed

2 files+4 added−1 removed

modified:flask/testsuite/testing.py+3 added
60 unmodified lines
61 sess['foo'] = [42]62 self.assert_equal(len(sess), 1)63 rv = c.get('/')64 self.assert_equal(rv.data, '[42]')65 with c.session_transaction() as sess:66 self.assert_equal(len(sess), 1)67 self.assert_equal(sess['foo'], [42])6869 def test_session_transactions_no_null_sessions(self):70 app = flask.Flask(__name__)71 app.testing = True
100 unmodified lines
modified:flask/testing.py+1 added-1 removed
57 unmodified lines
58 if self.cookie_jar is None:59 raise RuntimeError('Session transactions only make sense '60 'with cookies enabled.')61 app = self.application62 environ_overrides = kwargs.pop('environ_overrides', {})62 environ_overrides = kwargs.setdefault('environ_overrides', {})63 self.cookie_jar.inject_wsgi(environ_overrides)64 outer_reqctx = _request_ctx_stack.top65 with app.test_request_context(*args, **kwargs) as c:66 sess = app.open_session(c.request)
59 unmodified lines