mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-29 23:49:09 +00:00
Move unit test compat code out of lib/ansible/. (#46996)
* Move ansible.compat.tests to test/units/compat/. * Fix unit test references to ansible.compat.tests. * Move builtins compat to separate file. * Fix classification of test/units/compat/ dir.
This commit is contained in:
parent
6e2897647c
commit
3033fd96b0
462 changed files with 773 additions and 776 deletions
|
|
@ -22,8 +22,8 @@ __metaclass__ = type
|
|||
import os
|
||||
import json
|
||||
|
||||
from ansible.compat.tests import unittest
|
||||
from ansible.compat.tests.mock import patch
|
||||
from units.compat import unittest
|
||||
from units.compat.mock import patch
|
||||
from ansible.module_utils import basic
|
||||
from ansible.module_utils._text import to_bytes
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ __metaclass__ = type
|
|||
|
||||
import json
|
||||
|
||||
from ansible.compat.tests.mock import patch
|
||||
from units.compat.mock import patch
|
||||
from ansible.modules.network.enos import enos_command
|
||||
from units.modules.utils import set_module_args
|
||||
from .enos_module import TestEnosModule, load_fixture
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ __metaclass__ = type
|
|||
|
||||
import json
|
||||
|
||||
from ansible.compat.tests.mock import patch
|
||||
from units.compat.mock import patch
|
||||
from ansible.modules.network.enos import enos_config
|
||||
from .enos_module import TestEnosModule, load_fixture
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ __metaclass__ = type
|
|||
|
||||
import json
|
||||
|
||||
from ansible.compat.tests.mock import patch
|
||||
from units.compat.mock import patch
|
||||
from .enos_module import TestEnosModule, load_fixture
|
||||
from ansible.modules.network.enos import enos_facts
|
||||
from units.modules.utils import set_module_args
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue