summaryrefslogtreecommitdiff
path: root/tests/test_regression.py
Commit message (Collapse)AuthorAgeFilesLines
* Replaced try...catch within tests with pytest.raisespytest-cleanupKevin Brown2019-10-101-5/+3
| | | | | | This still leaves one in test_debug which relies on reading out the traceback and cannot easily be replaced by pytest.raises like the others.
* Fix bug with when using Markup on ChainableUndefinedLaurence de Bruxelles2019-10-041-0/+5
| | | | | | | | | Wrapping a ChainableUndefined object with Markup causes an UndefinedError because Markup thinks that ChainableUndefined has an attribute called __html__ and tries to call it. This commit fixes this by defining a method __html__ that calls ChainableUndefined.__str__. We also add a regression test.
* BUGFIX #930 - Template parse if with when referencing with dictionary ↵eplata312019-05-131-0/+4
| | | | subproperty
* Remove print() output during testJon Dufresne2017-04-091-1/+0
| | | | Looks like it was left in from debugging.
* Fix custom contexts in fast resolve modeAdrian Moennich2017-03-151-0/+14
| | | | closes #675
* Correctly use buffer for else frame in loops. Fixes #669Armin Ronacher2017-01-241-0/+6
|
* Add support back for custom resolves on old resolve methodArmin Ronacher2017-01-121-0/+15
|
* Also restore original str methodArmin Ronacher2017-01-121-0/+1
|
* Restore original tuple repr for grouper. Fixes #654Armin Ronacher2017-01-121-0/+7
|
* Added another regression test for ansible/ansible#20063Armin Ronacher2017-01-121-0/+7
|
* Added a test for an assumed regression (refs #659)Armin Ronacher2017-01-121-0/+7
|
* Resolved bad code generation on toplevel ifsArmin Ronacher2017-01-091-0/+4
| | | | This fixes #651
* Correctly scope loop filters. Fixes #649Armin Ronacher2017-01-091-0/+27
|
* Support new scoping rules in scoped blocksArmin Ronacher2017-01-081-0/+5
|
* Do not use yield from for blocks with buffers. Fixes #645Armin Ronacher2017-01-081-0/+5
|
* Add support for explicit callersArmin Ronacher2017-01-081-1/+21
| | | | | | | | | This adds support for a never intended Jinja2 feature which however worked in limited support before due to a bug with the identifier scoping. A quick github code search indicates that developers commonly did this to set the default caller to none. This fixes #642
* Correct bad scoping for for loops. This fixes #640Armin Ronacher2017-01-071-0/+10
|
* Resolved a regression in 2.9 with macro call scopingArmin Ronacher2017-01-071-0/+25
|
* Bump up the copyright to 2017Armin Ronacher2017-01-071-1/+1
|
* Generalize scoping. This fixes #603Armin Ronacher2017-01-071-0/+35
|
* Added a test for macro scoping in loopsArmin Ronacher2017-01-061-0/+17
|
* Cleaned up shitty syntax in testsuiteArmin Ronacher2017-01-061-2/+2
|
* Added a missing testArmin Ronacher2017-01-061-0/+7
|
* Changed behavior of macro defaults to be frame boundArmin Ronacher2017-01-031-5/+5
|
* Checked in a failing testArmin Ronacher2017-01-031-0/+11
|
* Added a second test for #278Armin Ronacher2017-01-031-0/+11
|
* Added a test for #278Armin Ronacher2017-01-031-0/+9
|
* Added test for #86Armin Ronacher2017-01-031-0/+6
|
* Support block-set in toplevel situations when extends is usedArmin Ronacher2016-12-311-0/+7
|
* Support old-style classes for attribute lookups. Fixes #631Armin Ronacher2016-12-311-0/+8
|
* Make noopener the default for urlizeArmin Ronacher2016-12-311-1/+1
|
* Rename testsuite to tests and suggestionsKartheek Lenkala2015-03-221-0/+278
Remove py.test from setup.py install_requires Rename testsuite folder to tests.