diff --git a/changelogs/fragments/ansible-test-change-classification-reorg.yml b/changelogs/fragments/ansible-test-change-classification-reorg.yml new file mode 100644 index 00000000000..50ca262f09d --- /dev/null +++ b/changelogs/fragments/ansible-test-change-classification-reorg.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-test - Relocate change classification code. diff --git a/test/lib/ansible_test/_internal/classification/__init__.py b/test/lib/ansible_test/_internal/classification/__init__.py index 612760b6c22..607c25098db 100644 --- a/test/lib/ansible_test/_internal/classification/__init__.py +++ b/test/lib/ansible_test/_internal/classification/__init__.py @@ -7,9 +7,9 @@ import os import re import time -from . import types as t +from .. import types as t -from .target import ( +from ..target import ( walk_module_targets, walk_integration_targets, walk_units_targets, @@ -19,36 +19,36 @@ from .target import ( analyze_integration_target_dependencies, ) -from .util import ( +from ..util import ( display, is_subdir, ) -from .import_analysis import ( +from .python import ( get_python_module_utils_imports, get_python_module_utils_name, ) -from .csharp_import_analysis import ( +from .csharp import ( get_csharp_module_utils_imports, get_csharp_module_utils_name, ) -from .powershell_import_analysis import ( +from .powershell import ( get_powershell_module_utils_imports, get_powershell_module_utils_name, ) -from .config import ( +from ..config import ( TestConfig, IntegrationConfig, ) -from .metadata import ( +from ..metadata import ( ChangeDescription, ) -from .data import ( +from ..data import ( data_context, ) diff --git a/test/lib/ansible_test/_internal/classification/csharp.py b/test/lib/ansible_test/_internal/classification/csharp.py index daa8892c027..bc29cee4b1d 100644 --- a/test/lib/ansible_test/_internal/classification/csharp.py +++ b/test/lib/ansible_test/_internal/classification/csharp.py @@ -5,19 +5,19 @@ __metaclass__ = type import os import re -from .io import ( +from ..io import ( open_text_file, ) -from .util import ( +from ..util import ( display, ) -from .util_common import ( +from ..util_common import ( resolve_csharp_ps_util, ) -from .data import ( +from ..data import ( data_context, ) diff --git a/test/lib/ansible_test/_internal/classification/powershell.py b/test/lib/ansible_test/_internal/classification/powershell.py index cfc618593bc..e0be660947a 100644 --- a/test/lib/ansible_test/_internal/classification/powershell.py +++ b/test/lib/ansible_test/_internal/classification/powershell.py @@ -5,19 +5,19 @@ __metaclass__ = type import os import re -from .io import ( +from ..io import ( read_text_file, ) -from .util import ( +from ..util import ( display, ) -from .util_common import ( +from ..util_common import ( resolve_csharp_ps_util, ) -from .data import ( +from ..data import ( data_context, ) diff --git a/test/lib/ansible_test/_internal/classification/python.py b/test/lib/ansible_test/_internal/classification/python.py index 9cc5376feb5..cc6d05e0dd8 100644 --- a/test/lib/ansible_test/_internal/classification/python.py +++ b/test/lib/ansible_test/_internal/classification/python.py @@ -6,19 +6,19 @@ import ast import os import re -from . import types as t +from .. import types as t -from .io import ( +from ..io import ( read_binary_file, ) -from .util import ( +from ..util import ( display, ApplicationError, is_subdir, ) -from .data import ( +from ..data import ( data_context, )