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:
Matt Clay 2018-10-12 20:01:14 -07:00 committed by GitHub
parent 6e2897647c
commit 3033fd96b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
462 changed files with 773 additions and 776 deletions

View file

@ -16,7 +16,7 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
__metaclass__ = type
from ansible.compat.tests.mock import patch, call
from units.compat.mock import patch, call
from ansible.modules.system import parted as parted_module
from ansible.modules.system.parted import parse_partition_info
from units.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args