Test helper more (#7421)

* facter: add option to return facts instead of output variables

* Update plugins/modules/facter.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* add output doc

* add changelog frag

* reversed facter.py, created facter_facts.py

* remove chglog fragment for new module

* test helper: add Helper.from_module()

* change case in variable name

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky 2023-10-24 10:04:18 +13:00 committed by GitHub
parent bb59962061
commit 3b87f58070
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 18 additions and 11 deletions

View file

@ -17,6 +17,6 @@ from ansible_collections.community.general.plugins.modules import xfconf
from .helper import Helper
helper = Helper.from_file(xfconf.main, "tests/unit/plugins/modules/test_xfconf.yaml")
helper = Helper.from_module(xfconf)
patch_bin = helper.cmd_fixture
test_module = helper.test_module