Skip to content

Commit c558619

Browse files
Derive AST import-helper boundary inventory from canonical guard list
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 162c3ec commit c558619

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

tests/test_ast_import_helper_import_boundary.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33

44
import pytest
55

6-
pytestmark = pytest.mark.architecture
7-
6+
from tests.test_ast_import_helper_usage import AST_IMPORT_GUARD_MODULES
87

9-
EXPECTED_AST_IMPORT_HELPER_IMPORTERS = (
10-
"tests/test_ast_function_source_helper_usage.py",
11-
"tests/test_ast_function_source_import_boundary.py",
12-
)
8+
pytestmark = pytest.mark.architecture
139

1410

1511
def _imports_ast_import_helper(module_text: str) -> bool:
@@ -32,4 +28,4 @@ def test_ast_import_helper_imports_are_centralized():
3228
continue
3329
discovered_modules.append(module_path.as_posix())
3430

35-
assert discovered_modules == list(EXPECTED_AST_IMPORT_HELPER_IMPORTERS)
31+
assert discovered_modules == sorted(AST_IMPORT_GUARD_MODULES)

0 commit comments

Comments
 (0)