Make all doc fragments, module utils, and plugin utils private (#11896)

* Make all doc fragments private.

* Make all plugin utils private.

* Make all module utils private.

* Reformat.

* Changelog fragment.

* Update configs and ignores.

* Adjust unit test names.
This commit is contained in:
Felix Fontein
2026-04-20 20:16:26 +02:00
committed by GitHub
parent 9ef1dbb6d5
commit 4fa82b9617
807 changed files with 2041 additions and 1702 deletions

View File

@@ -14,7 +14,8 @@ from ansible_collections.community.general.plugins.modules import lxca_cmms
@pytest.fixture(scope="module")
@mock.patch(
"ansible_collections.community.general.plugins.module_utils.remote_management.lxca.common.close_conn", autospec=True
"ansible_collections.community.general.plugins.module_utils._remote_management.lxca.common.close_conn",
autospec=True,
)
def setup_module(close_conn):
close_conn.return_value = True
@@ -42,7 +43,7 @@ class TestMyModule:
)
@pytest.mark.usefixtures("patch_ansible_module")
@mock.patch(
"ansible_collections.community.general.plugins.module_utils.remote_management.lxca.common.setup_conn",
"ansible_collections.community.general.plugins.module_utils._remote_management.lxca.common.setup_conn",
autospec=True,
)
@mock.patch("ansible_collections.community.general.plugins.modules.lxca_cmms.execute_module", autospec=True)
@@ -58,7 +59,7 @@ class TestMyModule:
assert "missing required arguments" in results["msg"]
@mock.patch(
"ansible_collections.community.general.plugins.module_utils.remote_management.lxca.common.setup_conn",
"ansible_collections.community.general.plugins.module_utils._remote_management.lxca.common.setup_conn",
autospec=True,
)
@mock.patch("ansible_collections.community.general.plugins.modules.lxca_cmms.execute_module", autospec=True)
@@ -86,7 +87,7 @@ class TestMyModule:
assert mock.call(argument_spec=expected_arguments_spec, supports_check_mode=False) == ansible_mod_cls.call_args
@mock.patch(
"ansible_collections.community.general.plugins.module_utils.remote_management.lxca.common.setup_conn",
"ansible_collections.community.general.plugins.module_utils._remote_management.lxca.common.setup_conn",
autospec=True,
)
@mock.patch("ansible_collections.community.general.plugins.modules.lxca_cmms._cmms_by_uuid", autospec=True)