forked from orbit-oss/flask
Merge pull request #309 from embe/master
Fix session loading in flask.testing.TestClient.session_transaction()
This commit is contained in:
commit
7b899c8510
2 changed files with 4 additions and 1 deletions
|
|
@ -62,6 +62,9 @@ class TestToolsTestCase(FlaskTestCase):
|
|||
self.assert_equal(len(sess), 1)
|
||||
rv = c.get('/')
|
||||
self.assert_equal(rv.data, '[42]')
|
||||
with c.session_transaction() as sess:
|
||||
self.assert_equal(len(sess), 1)
|
||||
self.assert_equal(sess['foo'], [42])
|
||||
|
||||
def test_session_transactions_no_null_sessions(self):
|
||||
app = flask.Flask(__name__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue