Roman
92ce20eeac
Fix error in send_file helper ( #2003 )
...
* Fix error in send_file (mimetype_filename is not defined)
* fix formatting error message in send_file
8 years ago
Markus Unterwaditzer
71e10be286
Properly remove f.name usage in send_file ( #1988 )
...
* Properly remove f.name usage in send_file
* Update changelogs
* Fix tests
8 years ago
David Lord
f193f590bc
clean up new json tests
8 years ago
Nathan Land
f16e477b2a
Add tests for flask.json.dump() and test that jsonify correctly converts uuids.
8 years ago
David Lord
7c271401b2
pass value directly to last_modified
9 years ago
Prachi Shirish Khadke
af515cc7ea
Add last_modified arg for send_file
...
Enhancement: Add last_modified arg of type DateTime to send_file.
Fixes pallets/flask#1321
9 years ago
Giampaolo Eusebi
06a170ea9b
Add tests for safe_join
9 years ago
Dan Sully
8458cc5cd1
Remove deprecation warnings for add_etags & mimetype guessing for send_file()
...
Fix #1849
9 years ago
Markus Unterwaditzer
6c359e0f53
Eliminate some resource warnings
9 years ago
Markus Unterwaditzer
293eb583f6
More explicit warning categories
9 years ago
Markus Unterwaditzer
d393597c50
Use recwarn everywhere
...
...instead of custom fixture. Also assert that no warnings are left over
after the test.
9 years ago
David Lord
024fbe5a60
Revert "Adds simplejson as a testing target." ( #1865 )
9 years ago
James Farrington
390cd5e4ee
Fixed #1846
9 years ago
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.
11 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