mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
[stable-9] Use more unit test utils from community.internal_test_tools (#9920)
Use more unit test utils from community.internal_test_tools (#9918)
* Make conftest's patch_ansible_module use the context manager from .utils.
* Fix test dependencies.
* Use module mock utils from community.internal_test_tools.
* Use DataDictLoader from community.internal_test_tools.
* Use trust util from community.internal_test_tools.
(cherry picked from commit 8ab8010b6d
)
This commit is contained in:
parent
3727bf7cd4
commit
928cdaaf87
89 changed files with 205 additions and 262 deletions
|
@ -9,7 +9,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch,
|
|||
from ansible_collections.community.general.plugins.modules import parted as parted_module
|
||||
from ansible_collections.community.general.plugins.modules.parted import parse_parted_version
|
||||
from ansible_collections.community.general.plugins.modules.parted import parse_partition_info
|
||||
from ansible_collections.community.general.tests.unit.plugins.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args
|
||||
from ansible_collections.community.internal_test_tools.tests.unit.plugins.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args
|
||||
|
||||
# Example of output : parted -s -m /dev/sdb -- unit 'MB' print
|
||||
parted_output1 = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue