Skip to content
Myr

Added a branch to test functionality enabled by new test client

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 · parent 4fe80c0 · Browse files · 1 file+3 added−5 removed
This commit

State

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

Diff stats

1 file+3 added−5 removed

  • other:+3 added−5 removed

1 file+3 added−5 removed

modified:flask/testsuite/testing.py+3 added-5 removed
69 unmodified lines
70 assert flask.session.get('data') == 'foo'71 rv = c.post('/', data={}, follow_redirects=True)72 assert rv.data == 'foo'7374 # XXX: Currently the test client does not support75 # keeping the context around if a redirect is followed.76 # This would be nice to fix but right now the Werkzeug77 # test client does not support that.78 ##assert flask.session.get('data') == 'foo'74 # This support requires a new Werkzeug version75 if not hasattr(c, 'redirect_client'):76 assert flask.session.get('data') == 'foo'7778 rv = c.get('/getsession')79 assert rv.data == 'foo'80
124 unmodified lines