Christian Stade-Schuldt
4ec1fbc9f5
More DRYing up the test suite ( #2325 )
8 years ago
Christian Stade-Schuldt
5b0b9717da
DRYing up the test suite using pytest fixtures ( #2306 )
...
* add fixtures to conftest.py
* use fixtures in test_appctx.py
* use fixtures in test_blueprints.py
* use fixtures in test_depreciations.py
* use fixtures in test_regressions.py
* use fixtures in test_reqctx.py
* use fixtures in test_templating.py
* use fixtures in test_user_error_handler.py
* use fixtures in test_views.py
* use fixtures in test_basics.py
* use fixtures in test_helpers.py
* use fixtures in test_testing.py
* update conftest.py
* make docstrings PEP-257 compliant
* cleanup
* switch dictonary format
* use pytest parameterization for test_json_as_unicode
8 years ago
Alan Hamlett
99c99c4c16
Enable autoescape for `render_template_string`
9 years ago
Markus Unterwaditzer
d13a1b363e
Rename jinja_env_class
...
Inspired by #1056
10 years ago
ThiefMaster
08ac3aa4e3
Allow custom jinja environments
...
This is useful e.g. when using the new Jinja Environment
attributes added in mitsuhiko/jinja2#404
10 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
Petr Zemek
ec3d5800f2
Put two spaces before inline comments when there is only one space.
...
PEP8 (E261) suggests to use at least two spaces before inline comments.
10 years ago
defuz
f88765d504
set TEMPLATE_AUTO_RELOAD default value to None
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
d0cf5ef394
WIP
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
Markus Unterwaditzer
bb0084f5be
Fix Py3 compat bug
...
Also don't use unicode string here because the assertions below are
written for native strings.
10 years ago
Armin Ronacher
bafc139810
Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded.
10 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
defuz
3e485009a8
add TEMPLATES_AUTO_RELOAD option to config
11 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
Armin Ronacher
3b393f89f6
Added template_global, fixes #657
12 years ago
Armin Ronacher
f34c028125
Added template tests and made config a true global
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
Dmitry Shevchenko
0b3369355d
Allow loading template from iterable
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