summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Trim trailing white space throughout the projectJon Dufresne2018-08-291-1/+1
| | | | | | | | | | | | | | | | | | Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines.
* | | Merge pull request #802 from abadger/allow-more-splattingDavid Lord2018-05-141-2/+7
|\ \ \ | | | | | | | | More closely match python splatting for calls
| * | | More closely match python splatting for callsToshio Kuratomi2018-01-291-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python, it's legal to use splats in function calls like this: call_function('123', *b, c=5, **d) Prior to this change, jinja2 did not allow that. It mandated that all splatting had to take place at the end of the call: call_function('123', c=5, *b, **d) This commit allows both orders. Additionally, this commit adds tests for more things that are illegal: namely giving a function a positional argument after using a splat to unpack positional arguments or giving a function a named argument after using a double splat to unpack keyword arguments.
* | | | {% raw %} tests and note for documentationngr2018-05-141-0/+12
| | | |
* | | | Fix spelling in docstringErik Johnson2018-03-191-1/+1
| | | |
* | | | Add test cases for quotes and expand coverage to include Markup inputErik Johnson2018-03-191-6/+17
|/ / /
* | | Allow to pass a list to native_concatMartin Krizek2018-01-171-0/+6
|/ /
* | Support filters in set blockThiefMaster2017-10-311-0/+27
| | | | | | | | | | - e.g {% set foo | trim %}...{% endset %} - closes #486
* | Merge branch 'master' into NATIVE_TYPESDavid Lord2017-10-313-6/+16
|\ \
| * \ Merge branch '2.9-maintenance'Adrian Moennich2017-08-222-4/+13
| |\ \
| | * | Compile `elif` tag to `elif` instead of `else: if`2.9-maintenanceAdrian Moennich2017-08-222-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids deep nesting in case of many `{% elif .. %}` blocks (which would fail during execution) and also deep recursion (which may fail during compilation) fixes #759
| * | | Merge branch '2.9-maintenance'Armin Ronacher2017-08-091-2/+3
| |\ \ \ | | |/ /
| | * | Make tojson always safe (fix #709)Ayala Shachar2017-05-231-2/+3
| | | |
* | | | quickly fix py3 testsJames Tanner2017-07-251-1/+1
| | | |
* | | | Add requested patch for safe_repr and nodes.ImpossibleJames Tanner2017-07-251-0/+16
| | | |
* | | | Merge branch 'master' into NATIVE_TYPESAdrian2017-07-143-18/+117
|\ \ \ \ | |/ / /
| * | | rewrite tests to match usageDavid Lord2017-07-091-40/+37
| | | |
| * | | Adds tests for the memcached bytecode cache moduleAlex Kahan2017-07-091-1/+64
| | | |
| * | | add test and changelogDavid Lord2017-07-081-10/+10
| | | | | | | | | | | | | | | | use ignore_case function
| * | | shorten argumentsDavid Lord2017-07-071-8/+19
| | | | | | | | | | | | | | | | | | | | add test for single line update changelog
| * | | Ignore empty lines in indent filterFrancisco Jiménez Cabrera2017-07-071-5/+9
| | | |
| * | | add test and changelogDavid Lord2017-07-071-0/+6
| | | |
| * | | add tests and changelogDavid Lord2017-07-071-2/+20
| | | |
* | | | Add support for the Environment to optionally return native types.James Tanner2017-07-061-0/+94
|/ / / | | | | | | | | | | | | | | | This works by having an alternate CodeGenerator that avoids doing to_string after the yield statement and a new version of concat that handles the returned generator with a bit more "intelligence".
* | | allow using comparison operator symbols as testsDavid Lord2017-07-061-8/+28
| | | | | | | | | | | | | | | | | | add tests and aliases for all comparison operators adjust docs to prefer short names for compare tests closes #664
* | | remove test copied from markupsafeDavid Lord2017-07-061-18/+0
| | |
* | | parametrize testsDavid Lord2017-07-061-24/+20
| | | | | | | | | | | | | | | argument order consistent with existing filters add changelog
* | | Added min and max filtersSebastian Noack2017-07-061-0/+24
| | |
* | | make attrgetter take generic postprocess functionDavid Lord2017-07-051-9/+9
| | | | | | | | | | | | add changelog
* | | Merge branch 'master' into unique-filterDavid Lord2017-07-0519-108/+1835
|\ \ \
| * | | fix random test for py2David Lord2017-07-051-2/+2
| | | | | | | | | | | | | | | | add changelog
| * | | test compares random filter to random call with same seedDavid Lord2017-07-051-11/+15
| | | |
| * | | Merge branch 'master' into dont-inline-randomDavid Lord2017-07-0519-103/+1819
| |\ \ \
| | * \ \ Merge pull request #731 from pallets/feature/kill-stringdefsDavid Lord2017-07-041-0/+27
| | |\ \ \ | | | | | | | | | | | | Use str.isidentifier to match idents on python 3
| | | * | | go back to generating regex, simplifiedfeature/kill-stringdefsDavid Lord2017-07-041-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new version uses ~2KB vs 200KB memory, is ~100x faster to load move script to generate pattern to scripts directory add more tests
| | | * | | remove unnecessary \b from name regexDavid Lord2017-07-031-4/+4
| | | | | |
| | | * | | switch back to unicode escapesDavid Lord2017-07-021-4/+4
| | | | | |
| | | * | | fix unicode for py2David Lord2017-07-021-13/+13
| | | | | |
| | | * | | test for new identifier lexerDavid Lord2017-07-021-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | currently fails on special case unicode
| | * | | | Add support for `{% trans trimmed ... %}`Adrian Moennich2017-07-031-0/+68
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same behavior as in Django: All linebreaks and the whitespace surrounding linebreaks are replaced with a single space. closes #504
| | * | | Add unit tests for namespace functionalityAdrian Moennich2017-06-241-2/+55
| | | | |
| | * | | Add changed() to loop contextAdrian Moennich2017-06-242-0/+14
| | | | |
| | * | | Add previtem/nextitem to loop contextAdrian Moennich2017-06-242-0/+40
| | | | | | | | | | | | | | | | | | | | related: #641
| | * | | Remove print() output during testJon Dufresne2017-04-091-1/+0
| | | | | | | | | | | | | | | | | | | | Looks like it was left in from debugging.
| | * | | Merge branch '2.9-maintenance'Armin Ronacher2017-04-031-0/+14
| | |\ \ \ | | | |/ / | | | | / | | | |/ | | |/|
| | | * Fix custom contexts in fast resolve modeAdrian Moennich2017-03-151-0/+14
| | | | | | | | | | | | | | | | closes #675
| | * | Merge branch '2.9-maintenance'Armin Ronacher2017-01-281-0/+15
| | |\ \ | | | |/
| | | * Fixed async macro autoescape. Fixes #671Armin Ronacher2017-01-281-0/+15
| | | |
| | * | Merge branch '2.9-maintenance'Armin Ronacher2017-01-241-0/+4
| | |\ \ | | | |/
| | | * Resolved extends errors in async mode (Fixes #668)Armin Ronacher2017-01-241-0/+4
| | | |