Added a branch to test functionality enabled by new test client
This commit is contained in:
parent
4fe80c05c6
commit
c90858a95d
1 changed files with 3 additions and 5 deletions
|
|
@ -71,11 +71,9 @@ class TestToolsTestCase(FlaskTestCase):
|
|||
rv = c.post('/', data={}, follow_redirects=True)
|
||||
assert rv.data == 'foo'
|
||||
|
||||
# XXX: Currently the test client does not support
|
||||
# keeping the context around if a redirect is followed.
|
||||
# This would be nice to fix but right now the Werkzeug
|
||||
# test client does not support that.
|
||||
##assert flask.session.get('data') == 'foo'
|
||||
# This support requires a new Werkzeug version
|
||||
if not hasattr(c, 'redirect_client'):
|
||||
assert flask.session.get('data') == 'foo'
|
||||
|
||||
rv = c.get('/getsession')
|
||||
assert rv.data == 'foo'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue