We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 162c3ec commit c558619Copy full SHA for c558619
1 file changed
tests/test_ast_import_helper_import_boundary.py
@@ -3,13 +3,9 @@
3
4
import pytest
5
6
-pytestmark = pytest.mark.architecture
7
-
+from tests.test_ast_import_helper_usage import AST_IMPORT_GUARD_MODULES
8
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
-)
+pytestmark = pytest.mark.architecture
13
14
15
def _imports_ast_import_helper(module_text: str) -> bool:
@@ -32,4 +28,4 @@ def test_ast_import_helper_imports_are_centralized():
32
28
continue
33
29
discovered_modules.append(module_path.as_posix())
34
30
35
- assert discovered_modules == list(EXPECTED_AST_IMPORT_HELPER_IMPORTERS)
31
+ assert discovered_modules == sorted(AST_IMPORT_GUARD_MODULES)
0 commit comments