Steven Loria
2bf477cfea
Add JSONIFY_MIMETYPE configuration variable ( #1728 )
...
Allow jsonify responses' mimetype to be configured
2016-04-08 15:30:47 -07:00
Reuven
4dc2ef19ea
Use pytest.raises() instead of try/catch with asser 0
...
This is somehow more readable, and enable using the features of pytest's ExeptionInfo (such as errisinstance).
2016-03-04 13:30:40 +02:00
Miguel Grinberg
952a6c8989
Werkzeug should not block propagated exceptions from Flask
2016-01-02 14:18:36 -08:00
Markus Unterwaditzer
81ae94a5fd
Merge branch '0.10-maintenance'
2015-07-16 12:05:07 +02:00
Brandon Sandrowicz
20f62e828b
Fix Possible Typo
...
Looks like that was meant to be `config_key`. It works by accident because the function is defined in the same scope as the look that passes `config_key` to `apprunner`.
2015-04-02 01:48:48 +02:00
Markus Unterwaditzer
1577e1386e
Revert "Don't use threads in this test"
...
This reverts commit 78cd4161f0
.
2015-03-29 23:03:38 +02:00
Markus Unterwaditzer
78cd4161f0
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
Chris Rebert
6d2c076a3b
make test_request_preprocessing_early_return more thorough
2015-02-06 13:11:23 -08:00
Markus Unterwaditzer
1158e22958
Fix test under Python 3
2015-02-06 18:20:17 +01:00
Markus Unterwaditzer
5fa76f6800
Add testcase for behavior described in #1338
2015-02-05 22:13:19 +01:00
Parkayun
33534bb4a9
Happy New Year 2015
2015-01-02 11:35:00 +09:00
Michael Hall
98b155c65d
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
d9402fc0c0
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
bd232e5c82
PEP8
2014-10-21 19:11:54 +02:00
Gilman Callsen
d425279650
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
Paulo Bu
3f67fe94f1
Adds 2 tests for Flask.run method
2014-09-14 17:27:19 +02:00
Markus Unterwaditzer
a4931ff3a7
Kill class in test_basic
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
af4cb0ff2b
Remove flask superclass
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
af41dbe0c4
Remove useless classes
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
5da2c00419
Rewrite assertion methods
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
8fa5e32d9a
Tests pass now.
2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
961db8ad72
Made tests recognizable
2014-09-11 22:09:50 +02:00