Armin Ronacher
6aee9f6d77
Resolve state issue for url_for with forced scheme
...
This fixes #1596
9 years ago
David Hou
9f1be8e795
Raise BadRequest if static file name is invalid
...
* Raise BadRequest if static file name is invalid
* Clean up syntax a bit
* Remove unnecessary close()
9 years ago
Shipeng Feng
cc536c8a7b
Fixed stream_with_context if decorated function has parameters
9 years ago
Jeff Widman
daceb3e3a0
Add support for serializing top-level arrays to JSON
...
Fix #170 , #248 , #510 , #673 , #1177
9 years ago
Keyan Pishdadian
1cd9e91810
Changed error message to include actual exception contents
10 years ago
Keyan Pishdadian
d6a1307f9d
Change strings to bytes to support Python3, typo in function name
10 years ago
Keyan Pishdadian
294961e6fc
Change tests to support older response format
10 years ago
Keyan Pishdadian
39e66ca6d7
Add tests for adding exception to response contents only when DEBUG is True
10 years ago
Ben Jones
61263e08f9
Add datetime.date support to JSONEncoder
10 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
Markus Unterwaditzer
192da325f8
Testsuite is not a package
10 years ago
Markus Unterwaditzer
77d887526d
Rename fixture apps_tmpdir
10 years ago
Markus Unterwaditzer
a00ccdce94
Remove more test_apps
10 years ago
Markus Unterwaditzer
af4cb0ff2b
Remove flask superclass
10 years ago
Markus Unterwaditzer
af41dbe0c4
Remove useless classes
10 years ago
Markus Unterwaditzer
5da2c00419
Rewrite assertion methods
10 years ago
Markus Unterwaditzer
8fa5e32d9a
Tests pass now.
10 years ago
Markus Unterwaditzer
961db8ad72
Made tests recognizable
10 years ago
Markus Unterwaditzer
3550b26071
Move tests
10 years ago
Armin Ronacher
84ad89ffa4
Always log now, even if debug is off.
10 years ago
Armin Ronacher
fb622380d0
Use older descriptor to support older werkzeug versions
11 years ago
Armin Ronacher
964c4a37c0
Closed an unclosed file in the tests
11 years ago
Armin Ronacher
001100bc0b
Fixed PyStringIO in tests for 2.x
11 years ago
Armin Ronacher
8cb79fd026
Added a test for sending from directories
11 years ago
Armin Ronacher
d094d5b6fc
Fixed warning and broken tests on 3.3
11 years ago
Armin Ronacher
2506c0b9a9
Fixed sending etags for file streams with a name. This fixes #930 .
11 years ago
Armin Ronacher
e5bba9deb5
Added support for custom JSON mimetypes
11 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
Michael Bikovitsky
b7337080e4
Fix test_send_file_object
...
static/index.html now opens in binary mode, and therefore newline conversion does not take place.
11 years ago
Chason Chaffin
5e8dd8b287
Changed sort_json test to test str sorting
...
Tests when simplejson was installed were failing because of a change in
how it sorted in v3.0.0. This change first tests it via normal int
sorting for stdlib json then if that fails, it tests against str sorting
for simplejson.
12 years ago
Armin Ronacher
c502dfbbfb
Changed |tojson filter to quote single attributes
12 years ago
Armin Ronacher
964174931d
Added request.get_json().
12 years ago
Armin Ronacher
ef72b78042
Imply the |safe on tojson in templates and change escaping logic
12 years ago
Armin Ronacher
0190b770a1
Removed a bunch of code from _compat
12 years ago
Armin Ronacher
77d293cf49
Order JSON keys by default to avoid trashing HTTP caches
12 years ago
Armin Ronacher
90e3906d02
Fixed some test failures
12 years ago
Armin Ronacher
8aaf302586
Disable direct passthrough for accessing the data attribute on newer Werkzeugs
12 years ago
Armin Ronacher
eb622fb34f
Fixed a whole bunch of resource warnings in the flask testsuite
12 years ago
Armin Ronacher
775c76ac5c
Enabled test mode for an app
12 years ago
Thomas Waldmann
ac04bc7836
replace 1/0 by 1 // 0 to get rid of DeprecationWarning (and PEP8 issue)
12 years ago
Thomas Waldmann
af5576a6c5
fix iterator in testsuite helpers
12 years ago
Armin Ronacher
4c27f7a8c4
Removed incorrect JSON exception subclasses
12 years ago
Daniel Neuhäuser
a0801719f8
Remove six dependency
12 years ago
Daniel Neuhäuser
9f8a2075c7
Use assert_in where appropriate
12 years ago
Daniel Neuhäuser
239780be28
Use assert_true instead of assert_
...
assert_ is deprecated which causes annoying warnings
12 years ago
Daniel Neuhäuser
5b89355b1c
Response data is bytes
12 years ago
Markus Unterwaditzer
05f66ad735
Fix some literals
12 years ago
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
12 years ago
Thomas Waldmann
522cd00093
python-modernize automated changes: fix_unicode (but without six.u())
12 years ago
Thomas Waldmann
dcd052366b
python-modernize automated changes: fix_next
12 years ago