]> git.ipfire.org Git - thirdparty/jinja.git/commit
add 'is filter' and 'is test' tests 1383/head
authorDavid Lord <davidism@gmail.com>
Mon, 5 Apr 2021 00:20:23 +0000 (17:20 -0700)
committerDavid Lord <davidism@gmail.com>
Mon, 5 Apr 2021 00:20:23 +0000 (17:20 -0700)
commit6c733602ac1b2d68d9b39acb7b1d96faae6a7717
tree5b06d102ff40b6d7eba1d8b1369fa6415ccd60e4
parentaf5d80e999944b6204e99a07940ae13382909efd
add 'is filter' and 'is test' tests

This required allowing tests to be decorated with '@environmentfilter'.
Tests are essentially the same as filters now, the node, compiler, and
environment have been refactored to extract common behavior.
CHANGES.rst
docs/api.rst
src/jinja2/compiler.py
src/jinja2/environment.py
src/jinja2/nodes.py
src/jinja2/tests.py
tests/test_filters.py
tests/test_tests.py