Dag Wieers
5553b20828
Collated PEP8 fixes ( #25293 )
...
- Make PEP8 compliant
2017-06-02 12:14:11 +01:00
Toshio Kuratomi
6bad4e57bd
Migrate most uses of if type() to if isinstance()
...
Also convert those checks to use abcs instead of dict and list.
Make a sentinel class for strategies to report when they've reache the end
2017-04-04 08:17:20 -07:00
Brian Coca
0c44959800
added new tests any and all ( #22665 )
...
* added new tests any and all
* updated code names
2017-03-15 18:09:25 -04:00
Brian Coca
cdb5a222c5
restored 'results' filters
...
tests do not work the same, restoring old filters to keep backwards compat
tests now only implment the new normalized 'tense'
2016-10-13 13:21:40 -04:00
Brian Coca
ed7623ecde
J2 test docs ( #16646 )
...
* moved tests from filters to actual jinja2 tests
also removed some unused declarations and imports
* split tests into their own docs
removed isnan as existing jinja2's 'number' already covers same
added missing docs for several tests
* updated as per feedback
2016-07-12 10:13:00 -04:00
Brian Coca
7657f75f75
removed defined/undefined as jinja2 already has em
2016-07-08 12:11:22 -04:00
Brian Coca
7f28bcacaa
added defined/undefined tests
2016-07-08 11:28:37 -04:00
Toshio Kuratomi
3221be4340
Reverse boilerplate order because from __future__ must be the first code in the file
2016-03-24 20:08:39 -07:00
Toshio Kuratomi
80e7fbff75
Add python3 compat boilerplate
2016-03-24 18:04:16 -07:00
George Christou
02ad029840
Add `issubset` and `issuperset` tests
2016-03-21 19:22:39 +00:00
Peter Sprygada
c0f1e1801b
adds multiline flag to regex test for search and match
...
This commit adds the multiline flag to the regexp search and match test
plugin. It defaults to re.M = False for backwards compatibility. To use
the multiline feature add multiline=True to the test filter
{{ config | search('^hostname', multiline=True) }}
2016-03-06 08:11:46 -05:00
Brian Coca
94fa9c2a7a
test aliases to enable gramatical consistancy
...
keeps backwards compat by not removing the previouslly non grammer matching states
and introduces new ones so user can decide which one he wants
(or keep both and still be inconsistent to annoy those that care)
2016-01-14 12:29:02 -05:00
Brian Coca
f8ed99e5e4
Revert "success should not include skipped"
...
This reverts commit 300ee227a2
.
2015-11-19 11:12:18 -08:00
Brian Coca
300ee227a2
success should not include skipped
...
fixes #13161
2015-11-14 14:39:42 -08:00
Toshio Kuratomi
f34b55ac2b
Add python3-compat boilerplate to all .py files in lib/ansible
2015-10-19 18:36:19 -07:00
Brian Coca
f150fe2c23
moved mandatory back to filters as it does not always return a boolean, it does an exception on failure
2015-08-21 09:54:56 -04:00
Brian Coca
f6b6ed530b
added file tests
2015-08-20 22:04:21 -04:00
Brian Coca
cd4a0c70b0
isnotanumber is not needed as jinja2 has builtin number test
2015-08-20 22:04:20 -04:00
Brian Coca
fe06577ac2
fixed mandatory test
2015-08-20 22:04:20 -04:00
James Cammarata
3a50c08c01
Merge branch 'pluggable_jinja_tests' of https://github.com/quixoten/ansible into quixoten-pluggable_jinja_tests
2015-07-29 15:16:27 -04:00