mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user