1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/plugins
Adrian Likins a57d6a4206 Use pop in cb clean results (#33779)
* Fix _clean_result for debug callback with 1 char var names

The check in _clean_results was removing any keys that happened
to be one of the chars in ('invocation') instead of the string
'invocation'. This was meant to be a tuple but there was no comma
so the for iterated the string instead of the tuple.

Introduced in 9dba580204fcc7d95d4ca2ea2ae4ce23fe28c2ed

Update unit test to catch this.

Fixes #33723

* Use .pop() to remove invocation from results dict

In base callback _clean_results, simplify the way the
'invocation' item is removed.

Add some more unit tests.
2017-12-11 17:41:12 -05:00
..
action Adding aliases for field attributes and renaming async attribute (#33141) 2017-11-22 12:35:58 -08:00
cache Disable abstract-class-instantiated for smoketests 2017-07-25 15:58:23 -07:00
callback Use pop in cb clean results (#33779) 2017-12-11 17:41:12 -05:00
connection Fix unit test failure for netconf connection plugin (#33547) 2017-12-05 12:04:48 +05:30
filter Port some tests away from nose as examples (#33437) 2017-11-30 14:04:09 -08:00
inventory Config continued (#31024) 2017-11-16 13:49:57 -05:00
lookup Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
shell Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
strategy test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
vars Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_plugins.py Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00