Commit graph

20 commits

Author SHA1 Message Date
Armin Ronacher
abc1505196 Fixed various issues on the Python 3 port 2013-05-30 15:07:18 +01:00
Thomas Waldmann
96b8ffbb29 always import from ._compat 2013-05-25 20:24:14 +02:00
Thomas Waldmann
e1d356fb71 ported some more stuff to py 3.3
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")

removed with_statement future imports, not needed any more

needs more work on 2.7 as well as on 3.3
2013-05-22 01:33:04 +02:00
Armin Ronacher
4f1cb42123 make_test_environ_builder when used with subdomains was not working correctly, now it uses urlparse module for detecting full URL and changing path and base_url correctly 2012-10-07 12:48:19 +02:00
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