Skip to content

Commit 11cadb8

Browse files
Refactor mapping read-helper boundary to shared extras
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent e1bdd9c commit 11cadb8

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎tests/test_mapping_read_helper_import_boundary.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33

44
import pytest
55

6+
from tests.test_mapping_utils_import_boundary import EXPECTED_MAPPING_EXTRA_IMPORTERS
67
from tests.test_mapping_reader_usage import MAPPING_READER_TARGET_FILES
78

89
pytestmark = pytest.mark.architecture
910

1011

11-
EXPECTED_READ_HELPER_EXTRA_IMPORTERS = ("tests/test_mapping_utils.py",)
12-
13-
1412
def _imports_read_string_key_mapping(module_text: str) -> bool:
1513
module_ast = ast.parse(module_text)
1614
for node in module_ast.body:
@@ -40,6 +38,6 @@ def test_read_string_key_mapping_imports_are_centralized():
4038
path.as_posix() for path in MAPPING_READER_TARGET_FILES
4139
)
4240
expected_modules = sorted(
43-
[*expected_runtime_modules, *EXPECTED_READ_HELPER_EXTRA_IMPORTERS]
41+
[*expected_runtime_modules, *EXPECTED_MAPPING_EXTRA_IMPORTERS]
4442
)
4543
assert discovered_modules == expected_modules

0 commit comments

Comments
 (0)