33import pytest
44
55from tests .ast_import_utils import imports_from_module
6+ from tests .test_ast_call_symbol_helper_import_boundary import (
7+ EXPECTED_CALLS_SYMBOL_IMPORTERS ,
8+ )
9+ from tests .test_ast_import_helper_secondary_import_boundary import (
10+ EXPECTED_SECONDARY_AST_IMPORT_HELPER_IMPORTERS ,
11+ )
12+ from tests .test_ast_import_helper_usage import AST_IMPORT_GUARD_MODULES
613
714pytestmark = pytest .mark .architecture
815
916
10- EXPECTED_AST_IMPORT_UTILS_IMPORTERS = (
17+ EXPECTED_EXTRA_IMPORTERS = (
1118 "tests/test_ast_call_symbol_helper_import_boundary.py" ,
12- "tests/test_ast_function_source_helper_usage.py" ,
13- "tests/test_ast_function_source_import_boundary.py" ,
1419 "tests/test_ast_import_helper_import_boundary.py" ,
1520 "tests/test_ast_import_helper_secondary_import_boundary.py" ,
16- "tests/test_ast_import_helper_usage.py" ,
1721 "tests/test_ast_import_utils.py" ,
1822 "tests/test_ast_import_utils_module_import_boundary.py" ,
1923)
@@ -27,4 +31,12 @@ def test_ast_import_utils_imports_are_centralized():
2731 continue
2832 discovered_modules .append (module_path .as_posix ())
2933
30- assert discovered_modules == list (EXPECTED_AST_IMPORT_UTILS_IMPORTERS )
34+ expected_modules = sorted (
35+ {
36+ * AST_IMPORT_GUARD_MODULES ,
37+ * EXPECTED_CALLS_SYMBOL_IMPORTERS ,
38+ * EXPECTED_SECONDARY_AST_IMPORT_HELPER_IMPORTERS ,
39+ * EXPECTED_EXTRA_IMPORTERS ,
40+ }
41+ )
42+ assert discovered_modules == expected_modules
0 commit comments