Skip to content

Commit b855f97

Browse files
Refactor safe key-display boundary to shared extras
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 5b3ba11 commit b855f97

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_safe_key_display_helper_import_boundary.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
import pytest
55

66
from tests.test_safe_key_display_helper_usage import ALLOWED_SAFE_KEY_DISPLAY_CALL_FILES
7+
from tests.test_mapping_utils_import_boundary import EXPECTED_MAPPING_EXTRA_IMPORTERS
78

89
pytestmark = pytest.mark.architecture
910

1011

11-
EXPECTED_SAFE_KEY_DISPLAY_EXTRA_IMPORTERS = ("tests/test_mapping_utils.py",)
12-
13-
1412
def _imports_safe_key_display_helper(module_text: str) -> bool:
1513
module_ast = ast.parse(module_text)
1614
for node in module_ast.body:
@@ -42,6 +40,6 @@ def test_safe_key_display_helper_imports_are_centralized():
4240
if path != Path("mapping_utils.py")
4341
)
4442
expected_modules = sorted(
45-
[*expected_runtime_modules, *EXPECTED_SAFE_KEY_DISPLAY_EXTRA_IMPORTERS]
43+
[*expected_runtime_modules, *EXPECTED_MAPPING_EXTRA_IMPORTERS]
4644
)
4745
assert discovered_modules == expected_modules

0 commit comments

Comments
 (0)