1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-01 07:58:54 +00:00

[PR #9921/410cf72a backport][stable-10] Unit tests: replace mock and compat with code from community.internal_test_tools (#9922)

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.

(cherry picked from commit 410cf72aec)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2025-03-22 14:20:45 +01:00 committed by GitHub
parent 57dcd31c82
commit c95a8b6540
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
135 changed files with 180 additions and 490 deletions

View file

@ -17,7 +17,7 @@ mandatory_py_version = pytest.mark.skipif(
reason='The proxmoxer dependency requires python2.7 or higher'
)
from ansible_collections.community.general.tests.unit.compat.mock import MagicMock, patch
from ansible_collections.community.internal_test_tools.tests.unit.compat.mock import MagicMock, patch
from ansible_collections.community.general.plugins.modules import proxmox_snap
import ansible_collections.community.general.plugins.module_utils.proxmox as proxmox_utils
from ansible_collections.community.internal_test_tools.tests.unit.plugins.modules.utils import set_module_args