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
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

@ -614,6 +614,11 @@ class PathMapper(object):
'units': path,
}
if path.startswith('test/units/compat/'):
return {
'units': 'test/units/',
}
# changes to files which are not unit tests should trigger tests from the nearest parent directory
test_path = os.path.dirname(path)