|
|
@ -71,11 +71,9 @@ class TestToolsTestCase(FlaskTestCase): |
|
|
|
rv = c.post('/', data={}, follow_redirects=True) |
|
|
|
rv = c.post('/', data={}, follow_redirects=True) |
|
|
|
assert rv.data == 'foo' |
|
|
|
assert rv.data == 'foo' |
|
|
|
|
|
|
|
|
|
|
|
# XXX: Currently the test client does not support |
|
|
|
# This support requires a new Werkzeug version |
|
|
|
# keeping the context around if a redirect is followed. |
|
|
|
if not hasattr(c, 'redirect_client'): |
|
|
|
# This would be nice to fix but right now the Werkzeug |
|
|
|
assert flask.session.get('data') == 'foo' |
|
|
|
# test client does not support that. |
|
|
|
|
|
|
|
##assert flask.session.get('data') == 'foo' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rv = c.get('/getsession') |
|
|
|
rv = c.get('/getsession') |
|
|
|
assert rv.data == 'foo' |
|
|
|
assert rv.data == 'foo' |
|
|
|