Randy Liou
954b7ef7bb
Enhance code coverage for Blueprint.endpoint
...
Add basic test for the endpoint decorator for the Blueprint object.
9 years ago
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).
9 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
Markus Unterwaditzer
c6795eb626
Remove useless unittest imports
10 years ago
Markus Unterwaditzer
861aa0db1f
Init global test_apps explicitly
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
817b72d484
Removed deprecated module functionality
10 years ago
Armin Ronacher
84ad89ffa4
Always log now, even if debug is off.
10 years ago
Kenneth Reitz
d4fec14544
Revert "Revert "Merge pull request #859 from wvh/register_error_handler""
...
This reverts commit 2aa26fff04
.
11 years ago
Kenneth Reitz
2aa26fff04
Revert "Merge pull request #859 from wvh/register_error_handler"
...
This reverts commit 6347e75dee
, reversing
changes made to 3fd40e83e5
.
11 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
Wouter Van Hemel
079ae20f24
Add tests for user-defined exceptions in blueprints
11 years ago
Armin Ronacher
e17024e85a
Added a testcase for some more routing things between blueprints.
12 years ago
Armin Ronacher
90e3906d02
Fixed some test failures
12 years ago
Armin Ronacher
eb622fb34f
Fixed a whole bunch of resource warnings in the flask testsuite
12 years ago
Thomas Waldmann
13cc69911c
fix typos
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
6caaa8a527
automated change using python-modernize: use 'as' in except
12 years ago
Armin Ronacher
f034d8d345
Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332
12 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
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
820d099e82
Add tests for template filter methods/decorators.
13 years ago
Ron DuPlain
37f9cb9ca6
Import with statement in testsuite, Python 2.5.
13 years ago
Armin Ronacher
fc2caa4b9c
Changed assert to self.assert_ where it was still in place
13 years ago
Armin Ronacher
3069e2d7f7
Fight the generic asserts!
13 years ago
Armin Ronacher
4cb6eea8f1
Split up testsuite and moved it to flask.testsuite. This fixes #246
13 years ago