summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '2.11.x'David Lord2020-04-132-0/+103
|\
| * native only evals at end of renderDavid Lord2020-04-131-0/+9
| | | | | | | | Co-authored-by: Martin Krizek <mkrizek@redhat.com>
| * Add tests for lstrip whitespace behavior fixPeter Dolak2020-04-131-0/+92
| | | | | | | | | | Also did peformance tests for the previous fix and saw no measurable impact.
* | add changelog and cleanup for pep 451 supportDavid Lord2020-03-301-14/+7
| |
* | Use importlib machinery to fix PEP 451 import hooksAnthony Sottile2020-03-301-0/+41
| |
* | Merge branch '2.11.x'David Lord2020-03-302-0/+29
|\ \ | |/
| * namespace object works in async templatesBart Feenstra2020-03-301-0/+11
| |
| * Fix tokens line number calculation when whitespace stripping is usedAndrey Lisin2020-03-301-0/+18
| |
* | Merge branch '2.11.x'David Lord2020-03-301-0/+15
|\ \ | |/
| * Revert "PackageLoader doesn't depend on setuptools"David Lord2020-03-302-50/+0
| | | | | | | | This reverts commit 4b6077a8c0a0f56bb8dbac37f8f9027130b4091c.
| * AttributeError in undefined message doesn't cause RuntimeErrorDavid Lord2020-03-271-0/+15
| |
* | Merge branch '2.11.x'David Lord2020-02-271-0/+7
|\ \ | |/
| * use soft_str in do_wordcount, to trigger undefinedMatt Martz2020-02-271-0/+7
| |
* | Merge branch '2.11.x'David Lord2020-02-0516-111/+0
|\ \ | |/
| * remove custom pytest marksDavid Lord2020-02-0516-111/+0
| |
* | apply pyupgrade and f-stringsDavid Lord2020-02-0519-261/+229
| |
* | remove more compat codeDavid Lord2020-02-053-36/+24
| |
* | remove _compat moduleDavid Lord2020-02-059-162/+40
| |
* | remove deprecated codeDavid Lord2020-02-052-11/+2
|/
* add changelog and testDavid Lord2020-02-041-0/+19
|
* Added regression test for slicing of attributesArmin Ronacher2020-01-301-0/+4
|
* isolate bytecode cache testsDavid Lord2020-01-261-3/+3
|
* Revert "rename imports to jinja"David Lord2020-01-2621-166/+168
| | | | This reverts commit 1167525b73863119f8bbec03ddb9d35eacff4bef.
* Revert "add warning and alias for jinja2"David Lord2020-01-261-3/+3
| | | | This reverts commit fc9c60ba457efc4cadf6fa2886567e0ee6ca1a99.
* add warning and alias for jinja2David Lord2020-01-101-3/+3
|
* rename imports to jinjaDavid Lord2020-01-1021-168/+166
|
* simplify module docstringsstyleDavid Lord2020-01-1015-135/+0
|
* ensure deprecation warnings mention versionDavid Lord2020-01-101-4/+0
|
* apply flake8David Lord2020-01-1017-220/+143
|
* apply blackDavid Lord2020-01-1023-2542/+3178
|
* apply reorder-python-importsDavid Lord2020-01-1018-53/+113
|
* TemplateSyntaxError can be pickledAndrew Rabert2020-01-081-0/+7
|
* handle Undefined in get/select_templateDavid Lord2019-12-051-0/+25
|
* TemplateSyntaxError from included template has sourceDavid Lord2019-12-031-4/+19
|
* add a node for derived context referencesDaniel Watkins2019-12-021-4/+21
| | | | | This allows extensions to access locals in the scope from which they were called.
* rewrite traceback rewriting supportDavid Lord2019-12-021-2/+2
| | | | | | | | | | | | | Simplify the `jinja.debug` code. On Python >= 3.7, `tb_next` is directly assignable. On PyPy, use transparent proxies only if support is enabled. For cpython < 3.7, use ctypes to set `tb_next`. Rewrite the ctypes code to use `py_object` and `pythonapi.Py_IncRef`, which seems to avoid crashing on debug builds. On Python 3, a rewritten `TemplateSyntaxError` would retain the frames from the compiler functions for some reason. Clear these so the template source is the last thing in the traceback.
* refactor visit_OutputDavid Lord2019-11-202-22/+21
| | | | | | | | | | | | * `finalize` is generated once and cached for all nodes. * Extract common behavior for native env. Removed the compiler behavior where groups of nodes would generate a format string. Instead, individual nodes are always yielded. This made rendering 30% faster in the examples, and simplifies the code. It also removes the issue where Python would report either the first or last line of the multi-line format expression, messing up the traceback line number mapping.
* add test and changelog for constant comparison foldingDavid Lord2019-11-201-8/+31
|
* async templates await attribute accessrefactor-loop-contextDavid Lord2019-11-072-20/+24
|
* clarify quoting behavior of urlencode filterDavid Lord2019-11-041-12/+17
|
* reformat, doc, and test for wordwrapDavid Lord2019-11-011-0/+6
|
* Merge pull request #673 from MrSenko/get_corresponding_lineno_tracebackDavid Lord2019-11-011-0/+4
|\ | | | | handle template.get_corresponding_lineno() for lines without debug info
| * Add test for Template.get_corresponding_lineno()Mr. Senko2017-01-291-0/+4
| | | | | | | | this currently breaks with an exception inside Jinja
* | creating a NativeTemplate creates a NativeEnvironmentnative-template-envDavid Lord2019-10-281-119/+123
| |
* | don't create a third queueDavid Lord2019-10-241-1/+2
| |
* | LRUCache.copy initializes queue methodsRyan Siemens2019-10-241-1/+12
| |
* | preserve quotes between nodes in native envDavid Lord2019-10-221-1/+17
| |
* | support pathlib in FileSystemLoader and ModuleLoaderAlex Chan2019-10-213-8/+95
| |
* | PackageLoader doesn't depend on setuptoolsDavid Lord2019-10-172-7/+58
| |
* | fixing LoopContext, loops indexing and iterator length propertyaayushuppal2019-10-141-0/+48
| |