summaryrefslogtreecommitdiff
path: root/tests/test_lexnparse.py
Commit message (Collapse)AuthorAgeFilesLines
* Replaced try...catch within tests with pytest.raisespytest-cleanupKevin Brown2019-10-101-5/+1
| | | | | | 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.
* Merge pull request #938 from stevenorum/masterDavid Lord2019-10-071-0/+6
|\ | | | | Fixing compiler handling of parens around boolean comparisons.
| * Fixing compiler handling of parens around boolean comparisons.Steve Norum2019-01-121-0/+6
| |
* | clean up numeric underscore supportDavid Lord2019-07-231-16/+11
| | | | | | | | | | | | | | add changelog clean up docs parametrize tests explain float regex
* | clean up scientific notation supportDavid Lord2019-07-231-3/+30
| | | | | | | | | | | | add changelog clean up docs parametrize tests
* | Allow '{%+' to be valid syntax (but NOP) when lstrip_blocks == False. Fixes ↵Mark Roth2019-07-201-0/+8
|/ | | | #748.
* 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
|/
* 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
* Bump up the copyright to 2017Armin Ronacher2017-01-071-1/+1
|
* Cleaned up shitty syntax in testsuiteArmin Ronacher2017-01-061-5/+5
|
* Fixed long standing wrong operator precedenceArmin Ronacher2016-12-281-0/+4
|
* Rename testsuite to tests and suggestionsKartheek Lenkala2015-03-221-0/+609
Remove py.test from setup.py install_requires Rename testsuite folder to tests.