mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +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:
@@ -16,7 +16,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ansible.compat.tests.mock import patch
|
||||
from units.compat.mock import patch
|
||||
from units.modules.utils import set_module_args as _set_module_args, AnsibleExitJson, AnsibleFailJson, ModuleTestCase
|
||||
|
||||
from nose.plugins.skip import SkipTest
|
||||
|
||||
@@ -29,7 +29,7 @@ try:
|
||||
except ImportError:
|
||||
raise SkipTest('Nuage Ansible modules requires the vspk and bambou python libraries')
|
||||
|
||||
from ansible.compat.tests.mock import patch
|
||||
from units.compat.mock import patch
|
||||
from units.modules.utils import set_module_args, AnsibleExitJson, AnsibleFailJson
|
||||
from .nuage_module import MockNuageConnection, TestNuageModule
|
||||
|
||||
|
||||
Reference in New Issue
Block a user