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
Max Countryman
b5069d07a2
adding `_scheme` parameter to `url_for`
...
In order to better facilitate generation of URLs that make use of an HTTPS URL
scheme this patch adds a parameter with this specific purpose in mind. To
achieve this we explicitly pass in a param, `_scheme='https'`, and then set the
`url_scheme` attribute of our `MapAdapter` instance appropriately.
Importantly, `_external=True` must be set in order for this to work properly.
As such, failure to do so results in a `ValueError` being raised.
12 years ago
Armin Ronacher
8339cb3508
Added support for unicode json dumping. This fixes #535
12 years ago
Armin Ronacher
05c6502cbd
Let json.* work even without app on the stack and added tests
12 years ago
Armin Ronacher
c4f2075f4c
tojson no longer escapes script blocks in HTML5 parsers. Fixed #605
12 years ago
Armin Ronacher
d5218997d9
Added flask.stream_with_context
13 years ago
Armin Ronacher
b04827283e
Removed padded JSON (JSONP) again.
...
The implementation was not clean and generally the needs for padded json
are disappearing now that all browsers support cross site communication
with the regular xmlhttprequest.
13 years ago
Ron DuPlain
26da6a5365
Use default send_file max-age consistently.
...
Prior to this commit, the send_file max-age hook and config were only
used for the static file handler. Now they are used when calling
helpers.send_file directly.
13 years ago
Ron DuPlain
d90f0afe39
Add test for jsonify padded=False, #495 .
13 years ago
Ron DuPlain
d94efc6db6
Expose send_file max-age as config value, #433 .
...
Need to add the same hook in a Blueprint, but this is the first such
case where we need app.config in the Blueprint.
13 years ago
Ron DuPlain
146088d580
Expand docs on send_file option hook, #433 .
13 years ago
Christoph Heer
cb24646948
Add jsonp support inside of jsonify
13 years ago