summaryrefslogtreecommitdiff
path: root/tests/test_regression.py
Commit message (Collapse)AuthorAgeFilesLines
* Markup and escape should be imported from markupsafeDavid Lord2021-04-101-1/+1
|
* unify/rename filter and function decoratorsDavid Lord2021-04-101-13/+11
| | | | Use pass_context instead of contextfilter and contextfunction, etc.
* Split lines in lexer only by \r\n, \r and \nMatěj Volf2021-04-051-0/+7
| | | | | | | | | | | | Python str.splitlines() splits by more characters[1], which, however, causes problems when keeping these special characters in processed templates is desirable, i.e. these bug reports: #769, #952, #1313. The keep_trailing_newlines logic is reworked because splitlines() removes them already (so they had to be added), while re.split doesn't so they have to be removed. [1] https://docs.python.org/3/library/stdtypes.html#str.splitlines
* more detailed docs about globalsDavid Lord2021-03-311-22/+17
|
* fix bug with cached templates not using new globalsAmy2021-03-301-0/+34
|
* track local loop/block vars for contextfunctionsAmy2021-03-261-0/+98
|
* Improve and extend urlizeBebleo2021-01-301-0/+9
|
* deprecate 'with' and 'autoescape' extensionsFawziyahAlebiosu2021-01-291-3/+1
|
* Merge branch '2.11.x'David Lord2020-02-051-2/+0
|\
| * remove custom pytest marksDavid Lord2020-02-051-2/+0
| |
* | apply pyupgrade and f-stringsDavid Lord2020-02-051-13/+12
| |
* | remove _compat moduleDavid Lord2020-02-051-11/+1
|/
* Revert "rename imports to jinja"David Lord2020-01-261-15/+15
| | | | This reverts commit 1167525b73863119f8bbec03ddb9d35eacff4bef.
* rename imports to jinjaDavid Lord2020-01-101-15/+15
|
* simplify module docstringsstyleDavid Lord2020-01-101-9/+0
|
* apply flake8David Lord2020-01-101-32/+27
|
* apply blackDavid Lord2020-01-101-205/+291
|
* apply reorder-python-importsDavid Lord2020-01-101-2/+8
|
* 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.