mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07: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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue