summaryrefslogtreecommitdiff
path: root/tests/test_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Markup and escape should be imported from markupsafeDavid Lord2021-04-101-1/+1
|
* add 'is filter' and 'is test' testsDavid Lord2021-04-041-0/+25
| | | | | | This required allowing tests to be decorated with '@environmentfilter'. Tests are essentially the same as filters now, the node, compiler, and environment have been refactored to extract common behavior.
* Merge branch '2.11.x'David Lord2020-02-051-1/+0
|\
| * remove custom pytest marksDavid Lord2020-02-051-1/+0
| |
* | apply pyupgrade and f-stringsDavid Lord2020-02-051-4/+3
|/
* Revert "rename imports to jinja"David Lord2020-01-261-2/+2
| | | | This reverts commit 1167525b73863119f8bbec03ddb9d35eacff4bef.
* rename imports to jinjaDavid Lord2020-01-101-2/+2
|
* simplify module docstringsstyleDavid Lord2020-01-101-9/+0
|
* apply flake8David Lord2020-01-101-3/+2
|
* apply blackDavid Lord2020-01-101-157/+157
|
* apply reorder-python-importsDavid Lord2020-01-101-1/+2
|
* Add more strict type testsDag Wieers2019-10-091-39/+97
| | | | | | | | | | | | | | | | | | | | | This PR adds a few more type-related tests. - boolean Testing of an object is a boolean required 2 tests. - false Make this similar to testing none value - true Make this similar to testing none value - integer The existing 'number' test does not make a distinction between integer, float or even booleans - float The existing 'number' test does not make a distinction between integer, float or even booleans
* 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
* Add "is in" containment test (#658)Dirk D2017-01-121-0/+13
|
* Bump up the copyright to 2017Armin Ronacher2017-01-071-1/+1
|
* Change grouping behavior of tests. This fixes #401Armin Ronacher2017-01-071-0/+14
|
* Cleaned up shitty syntax in testsuiteArmin Ronacher2017-01-061-1/+1
|
* Add test for greater/less than (#624)Major Hayden2017-01-041-0/+10
| | | | | | | | | | | | | | | | It can be helpful to have a test for values that are greater or less than another value, especially when looping over lists and using `select()` or `selectattr()` filters. This patch adds tests that allow a developer to check if a value is greater or less than another value. For example, if I have a list of vehicles and I want to find the motorcycles: vehicles | selectattr('wheels', 'lessthan', 3) Or, if I want to find large trucks: vehicles | selectattr('wheels', 'greaterthan', 4) Tests are included.
* Rename testsuite to tests and suggestionsKartheek Lenkala2015-03-221-0/+104
| | | | | Remove py.test from setup.py install_requires Rename testsuite folder to tests.
* Removed old testsuite.Armin Ronacher2010-02-091-94/+0
| | | | | --HG-- branch : trunk
* Got rid of py.testisms.Armin Ronacher2009-07-261-12/+11
| | | | | --HG-- branch : trunk
* Support nose framework for the whole test suite.Rene Leonhardt2009-04-201-0/+2
| | | | | --HG-- branch : trunk
* Copyright switch to "The Jinja Team".Armin Ronacher2009-01-041-1/+1
| | | | | --HG-- branch : trunk
* added more unittests for various tasksArmin Ronacher2008-05-241-3/+37
| | | | | --HG-- branch : trunk
* worked on the tests and made undefined fail on comparisons nowArmin Ronacher2008-04-261-8/+1
| | | | | --HG-- branch : trunk
* fixed a few bugs from the unittestsArmin Ronacher2008-04-181-8/+0
| | | | | --HG-- branch : trunk
* [svn] merged newparser into trunkArmin Ronacher2007-09-071-2/+9
| | | | | --HG-- branch : trunk
* [svn] added sameas test functionArmin Ronacher2007-06-241-0/+6
| | | | | --HG-- branch : trunk
* [svn] fixed jinja inheritance bug and improved unittestsArmin Ronacher2007-03-181-1/+0
| | | | | --HG-- branch : trunk
* [svn] added jinja doctests and fixed problem with i18n strings in requirementsArmin Ronacher2007-03-181-0/+62
--HG-- branch : trunk