1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-17 01:11:28 +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:
Felix Fontein 2025-03-22 14:32:01 +01:00 committed by GitHub
parent 928cdaaf87
commit 7df07f31a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
134 changed files with 175 additions and 578 deletions

View file

@ -23,7 +23,7 @@ from linode_api4 import LinodeClient
from ansible_collections.community.general.plugins.modules import linode_v4
from ansible_collections.community.general.plugins.module_utils.linode import get_user_agent
from ansible_collections.community.internal_test_tools.tests.unit.plugins.modules.utils import set_module_args
from ansible_collections.community.general.tests.unit.compat import mock
from ansible_collections.community.internal_test_tools.tests.unit.compat import mock
from .linode_conftest import access_token, no_access_token_in_env, default_args, mock_linode # noqa: F401, pylint: disable=unused-import