Commit graph

20 commits

Author SHA1 Message Date
Markus Unterwaditzer
3550b26071 Move tests 2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
bb0084f5be Fix Py3 compat bug
Also don't use unicode string here because the assertions below are
written for native strings.
2014-09-03 19:17:43 +02:00
Armin Ronacher
bafc139810 Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded. 2014-09-03 17:57:51 +02:00
Kenneth Reitz
7f5b6c692d Merge pull request #876 from defuz/templates-auto-reload
Add TEMPLATES_AUTO_RELOAD config key
2014-03-21 16:43:20 -04:00
Daniel Neuhäuser
52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01:00
defuz
3e485009a8 add TEMPLATES_AUTO_RELOAD option to config 2013-09-30 21:06:49 +03:00
Daniel Neuhäuser
9f8a2075c7 Use assert_in where appropriate 2013-05-22 20:12:50 +02:00
Daniel Neuhäuser
239780be28 Use assert_true instead of assert_
assert_ is deprecated which causes annoying warnings
2013-05-22 17:23:38 +02:00
Daniel Neuhäuser
5b89355b1c Response data is bytes 2013-05-22 17:14:07 +02:00
Markus Unterwaditzer
05f66ad735 Fix some literals 2013-05-22 17:09:37 +02:00
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
2013-05-22 01:33:04 +02:00
Armin Ronacher
3b393f89f6 Added template_global, fixes #657 2013-01-27 00:46:19 +00:00
Armin Ronacher
f34c028125 Added template tests and made config a true global 2012-10-08 07:01:49 +02:00
Armin Ronacher
f034d8d345 Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332 2012-10-07 12:51:46 +02:00
Dmitry Shevchenko
0b3369355d Allow loading template from iterable 2012-02-24 00:46:20 -06:00
Ron DuPlain
820d099e82 Add tests for template filter methods/decorators. 2012-01-16 20:21:26 -05:00
Ron DuPlain
37f9cb9ca6 Import with statement in testsuite, Python 2.5. 2011-09-01 12:35:04 -04:00
Armin Ronacher
fc2caa4b9c Changed assert to self.assert_ where it was still in place 2011-08-26 11:43:27 +01:00
Armin Ronacher
3069e2d7f7 Fight the generic asserts! 2011-08-26 11:38:43 +01:00
Armin Ronacher
4cb6eea8f1 Split up testsuite and moved it to flask.testsuite. This fixes #246 2011-08-26 11:21:26 +01:00