Armin Ronacher
c6316132b1
Context preserving is now part of Flask and not the test client. This fixes #326
13 years ago
Armin Ronacher
d2eefe25e7
app.name shall be __main__ for console apps
13 years ago
Simon Sapin
b8ef7360eb
Add to sys.path, not sys.path_info
13 years ago
Armin Ronacher
56afafae67
Do not break extension tests if tested with installed extensions.
13 years ago
Armin Ronacher
9691b7f0bf
Deal with partially setup packages in the redirect hook.
13 years ago
Armin Ronacher
ee9b401632
Added a comment on who the is_important_traceback seems to work. It's only speculation
13 years ago
Armin Ronacher
9a70e62b8d
No longer swallow important import errors.
...
This implements a simple but elegant method to find out if an import
error can be swallowed to try the next module or if the import error is
important and must be reraised.
13 years ago
Ron DuPlain
90884a78fb
Cross-reference debug docs in run docstring.
14 years ago
Simon Sapin
907c24e6ff
Document the debug param for Flask.run, it is not part of **options given to run_simple.
...
I am not sure bool() is appropriate.
14 years ago
Armin Ronacher
9c82840f52
Added more tests for the import hook
14 years ago
Armin Ronacher
9df2aefd7f
Do not set dotted attributes on flask.ext
14 years ago
Armin Ronacher
e8020e2c5c
Added comment to the importer wiping.
14 years ago
Armin Ronacher
f80bfcaa28
Added tests for old imports
14 years ago
Armin Ronacher
c72ca16234
Added tests for the import hook and fixed a problem with it.
14 years ago
Armin Ronacher
8f85a3b0d1
Experimental redirect importing for flask.ext to flask_ and flaskext.
14 years ago
Armin Ronacher
32c7e43dda
Simplified HEAD handling for method views
14 years ago
Michał Bartoszkiewicz
f8caa54d31
Fixed Blueprint.app_url_value_preprocessor.
14 years ago
Joel Perras
17a46a4d23
Fixed typo in docstring of `dispatch_request` method of `flask.views.View`.
14 years ago
Ron DuPlain
f6798885e6
Update create_global_jinja_loader docstring, #321 .
14 years ago
Armin Ronacher
7d7d810aea
Single quotes for consistency
14 years ago
Armin Ronacher
88617311db
Added an testcase for subclassing of Flask to supress logging
14 years ago
Armin Ronacher
7331ae3df5
Update the testsuite to not freak out about a change in Werkzeug 0.8 that changed the behavior of misconfigured hosts.
14 years ago
Ron DuPlain
37f9cb9ca6
Import with statement in testsuite, Python 2.5.
14 years ago
Armin Ronacher
ee8417dac8
Late but 2010 -> 2011 in some files
14 years ago
Armin Ronacher
ccf464189b
Added finer control over the session cookie parameters
14 years ago
Michał Bartoszkiewicz
4dc1796b1c
Fixed session loading in flask.testing.TestClient.session_transaction()
14 years ago
Armin Ronacher
23bf2633f6
Use the _request_ctx_stack instead of the proxy for consistency with the others.
14 years ago
Armin Ronacher
87f50fdc6f
Don't lie to the user about POST redirects
14 years ago
Armin Ronacher
bb1567dae4
Explained why os.getcwd is used for path finding
14 years ago
Armin Ronacher
718ef4d699
Added an XXX to a comment to not miss removing deprecated code later
14 years ago
Armin Ronacher
2e4c39199d
Refactored logging of internal server errors. Can now be customized
14 years ago
Armin Ronacher
e509d25d32
Some more cleanups in how the test runner is invoked
14 years ago
Armin Ronacher
367b254c78
Make sure that there is a test for subdomain matching with ports
14 years ago
Armin Ronacher
67101c8b93
Fake signals no better follow the blinker api
14 years ago
Armin Ronacher
b256e9f36c
make_default_options_response now tries to use Werkzeug 0.7 functionality before falling back.
14 years ago
Armin Ronacher
d49221bf2e
The test client now properly pops response contexts on __exit__
14 years ago
Armin Ronacher
c8ec453d86
Require that cookies are enabled in the test client for session transactions
14 years ago
Armin Ronacher
5235c3e37e
Make BetterLoader() have a better api :)
14 years ago
Armin Ronacher
a082a5e0ba
Cleanup in the test finder
14 years ago
Armin Ronacher
5a49688554
Moved loader code into the testsuite and out of the runner
14 years ago
Armin Ronacher
fbd6776e68
Fixed a bug in the testsuite that caused problems when dots where in directory names
14 years ago
Armin Ronacher
fc2caa4b9c
Changed assert to self.assert_ where it was still in place
14 years ago
Armin Ronacher
3069e2d7f7
Fight the generic asserts!
14 years ago
Armin Ronacher
4cb6eea8f1
Split up testsuite and moved it to flask.testsuite. This fixes #246
14 years ago
Armin Ronacher
ef0f626f0a
Added flask.views.View.decorators to automatically decorate class based views.
14 years ago
Armin Ronacher
8340d3c9f5
Updated docstring on make_response
14 years ago
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.
14 years ago
Pedro Algarvio
03a71e0229
Deny dot's in blueprint endpoints. Add tests for that too.
14 years ago
Armin Ronacher
311ac0f533
Ensure that nobody can nest test client invocations
14 years ago
Armin Ronacher
a5da2c98f3
Implemented flask.testing.TestClient.session_transaction for quick session modifications in test environments.
14 years ago