mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[stable-9] Unit tests: replace mock and compat with code from community.internal_test_tools (#9923)
* Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) * Replace compat with equivalent from community.internal_test_tools. * Replace mock with equivalent from community.internal_test_tools. * Remove ignore.txt entries. * Add test that's no longer present in later versions.
This commit is contained in:
@@ -20,9 +20,9 @@ from ansible.inventory.data import InventoryData
|
||||
from ansible.inventory.manager import InventoryManager
|
||||
from ansible.module_utils.common.text.converters import to_native
|
||||
from ansible_collections.community.internal_test_tools.tests.unit.mock.loader import DictDataLoader
|
||||
from ansible_collections.community.internal_test_tools.tests.unit.mock.path import mock_unfrackpath_noop
|
||||
|
||||
from ansible_collections.community.general.plugins.inventory.opennebula import InventoryModule
|
||||
from ansible_collections.community.general.tests.unit.mock.path import mock_unfrackpath_noop
|
||||
|
||||
|
||||
original_exists = os.path.exists
|
||||
|
||||
Reference in New Issue
Block a user