Markus Unterwaditzer
89fd83a50c
Revert "Don't use threads in this test"
...
This reverts commit 78cd4161f0 .
2015-03-29 23:03:38 +02:00
Markus Unterwaditzer
42d9cb6363
Don't use threads in this test
...
I think test failures would've been ignored if there were some.
Fixes #1401
2015-03-29 13:40:35 +02:00
Markus Unterwaditzer
6e9b0226c9
Merge branch 'mjpieters-appcontext_ignore_handled_exception'
2015-03-23 16:44:32 +01:00
Martijn Pieters
35a1bc2f4a
Switch away from using None as default value for the exception when tearing down a context.
...
When an exception has been handled when using the request / app context in a with statement, `sys.exc_info()` will still contain the exception information even though it has been handled already. The `__exit__` methods pass in `None` for the exception value in that case, which needs to be distinguisable from the default value for the `exc` parameter. Use a dedicated singleton sentinel value instead.
2015-03-23 15:17:19 +00:00
Markus Unterwaditzer
da89b1e3b8
Always run memory tests
2015-03-22 12:49:47 +01:00
Keyan Pishdadian
b032c2851e
Changed error message to include actual exception contents
2015-03-05 13:04:38 -05:00
Keyan Pishdadian
80f6344770
Change strings to bytes to support Python3, typo in function name
2015-03-04 15:14:43 -05:00
Keyan Pishdadian
f878cddb23
Change tests to support older response format
2015-03-04 14:48:08 -05:00
Keyan Pishdadian
225c59ca8e
Add tests for adding exception to response contents only when DEBUG is True
2015-03-04 14:40:16 -05:00
Chris Rebert
c16e7df2a1
make test_request_preprocessing_early_return more thorough
2015-02-06 13:11:23 -08:00
Markus Unterwaditzer
bf3f336306
Fix test under Python 3
2015-02-06 18:20:17 +01:00
Markus Unterwaditzer
d8642ab085
Add testcase for behavior described in #1338
2015-02-05 22:13:19 +01:00
Ben Jones
db619cc609
Add datetime.date support to JSONEncoder
2015-01-23 07:44:17 -06:00
Parkayun
e05771ff60
Happy New Year 2015
2015-01-02 11:35:00 +09:00
Michael Hall
ca45970012
Fixed #1288 : app.add_url_rule() should look for OPTIONS methods in a case-insensitive manner
2014-12-26 08:58:35 -05:00
Marc Abramowitz
8a022de2ed
Make jsonify terminate responses with a newline
...
This came up in the context of
https://github.com/kennethreitz/httpbin/issues/168
2014-12-07 14:37:26 -08:00
Markus Unterwaditzer
63b06da4dc
Merge pull request #1222 from defuz/templates_auto_reload-eq-none
...
Set TEMPLATE_AUTO_RELOAD default value to None
2014-11-02 20:46:48 +01:00
Petr Zemek
27d339dc69
Put two spaces before inline comments when there is only one space.
...
PEP8 (E261) suggests to use at least two spaces before inline comments.
2014-10-27 11:24:15 +01:00
Petr Zemek
0371506bf7
Change == None to is None.
...
PEP8 (E711) suggests that comparison to None should be `cond is None`.
2014-10-27 11:17:49 +01:00
Petr Zemek
cbd4f414c6
Remove two redundant empty lines.
...
PEP8 suggests to use two empty lines to separate functions, not three.
2014-10-27 11:13:03 +01:00
defuz
2192b6941e
set TEMPLATE_AUTO_RELOAD default value to None
2014-10-26 18:28:12 +03:00
defuz
a6d41d9f2f
add tests for trim_namespace argument of app.config.get_namespace
2014-10-24 13:11:10 +04:00
Markus Unterwaditzer
15e4d6f338
PEP8
2014-10-21 19:11:54 +02:00
Gilman Callsen
6f0c3533c7
Improve compression by removing whitespace from separators when using jsonify() and JSONIFY_PRETTYPRINT_REGULAR is False.
...
Commit includes Changelog entry and two new tests in test_basic.py.
2014-10-21 19:11:06 +02:00
INADA Naoki
856718578e
Add test for deprecated flask.Request properties.
2014-10-15 03:32:04 +09:00
Davide Ceretti
8c5559c211
Add unittest for appcontext_tearing_down signal
2014-10-07 07:34:19 +01:00
Markus Unterwaditzer
93001352c6
Remove useless unittest imports
2014-09-21 16:47:38 +02:00
Paulo Bu
a096c04e62
Adds 2 tests for Flask.run method
2014-09-14 17:27:19 +02:00
Markus Unterwaditzer
0b992484dd
Testsuite is not a package
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
8a83e7a78b
Remove useless imports
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
5e56cb0ace
Split instance tests off into own file
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
91c1d1a5ca
Kill class in test_basic
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
18ea34517c
Kill classes in test_regression
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
ee5ec5b768
Kill classes in test_testing
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
19f6a8af4c
Rename fixture apps_tmpdir
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
5e8c3488df
Remove more test_apps
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
8bbc73bd3b
Remove fake extensions from test_apps
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
9e2f3f84fc
Remove old helper function
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
9dd95d8dbb
Init global test_apps explicitly
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
cd89e94433
Add note to memleak tests
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
cb6ad78963
Remove obsolete apps
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
1d0b83690e
Remove flask superclass
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
304913a878
Remove useless classes
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
b33bb13c22
WIP
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
dd21241e04
Remove class from test_views
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
6ae0a05fce
Fix assertion error
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
879becff31
Rewrite assertion methods
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
441281b4e5
Rework test_signals
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
a21721a2ba
Move fixtures
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
5628b5be48
Rework test_config
2014-09-11 22:09:51 +02:00