Armin Ronacher
c6316132b1
Context preserving is now part of Flask and not the test client. This fixes #326
2011-09-24 20:27:38 +02:00
Armin Ronacher
7b899c8510
Merge pull request #309 from embe/master
...
Fix session loading in flask.testing.TestClient.session_transaction()
2011-09-07 02:44:08 -07:00
Armin Ronacher
f92a275d54
Merge branch 'master' of github.com:mitsuhiko/flask
2011-09-01 19:51:37 +02:00
Ron DuPlain
37f9cb9ca6
Import with statement in testsuite, Python 2.5.
2011-09-01 12:35:04 -04:00
Armin Ronacher
ee8417dac8
Late but 2010 -> 2011 in some files
2011-09-01 16:57:00 +02:00
Michał Bartoszkiewicz
4dc1796b1c
Fixed session loading in flask.testing.TestClient.session_transaction()
2011-08-29 21:39:31 +02:00
Armin Ronacher
d49221bf2e
The test client now properly pops response contexts on __exit__
2011-08-26 14:01:46 +01:00
Armin Ronacher
c8ec453d86
Require that cookies are enabled in the test client for session transactions
2011-08-26 13:47:01 +01:00
Armin Ronacher
e853a0f739
The test client and test_request_context are now both using the same logic internally for creating the environ. Also they use APPLICATION_ROOT now.
2011-08-25 20:47:50 +01:00
Armin Ronacher
311ac0f533
Ensure that nobody can nest test client invocations
2011-08-25 15:33:03 +01:00
Armin Ronacher
a5da2c98f3
Implemented flask.testing.TestClient.session_transaction for quick session modifications in test environments.
2011-08-25 15:18:39 +01:00
Armin Ronacher
2866ccda1f
Switch to explicit Werkzeug imports
2011-07-15 18:03:48 +02:00
Pedro Algarvio
a327452540
Better handling for test_request_context don't just append the port.
...
Also implemented a proper initial environment to use with
`Flask.test_app()` based on the application's configuration.
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2010-10-22 18:19:21 +03:00
Armin Ronacher
77e2fbf249
Added a separate logging module
2010-07-05 10:37:44 +02:00
Armin Ronacher
e5d8202038
Added a docstring
2010-07-05 10:32:06 +02:00
Armin Ronacher
df3f8940c3
Added separate module for testing
2010-07-05 10:31:18 +02:00