Skip to content

Commit 286cace

Browse files
Refactor mapping boundary to reuse tools module constant
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 0b9271d commit 286cace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_mapping_utils_import_boundary.py

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

66
from tests.test_mapping_reader_usage import MAPPING_READER_TARGET_FILES
7+
from tests.test_tool_mapping_reader_usage import TOOLS_MODULE
78

89
pytestmark = pytest.mark.architecture
910

1011

1112
EXPECTED_MAPPING_EXTRA_IMPORTERS = ("tests/test_mapping_utils.py",)
12-
MAPPING_TOOL_IMPORTER = Path("hyperbrowser/tools/__init__.py")
1313

1414

1515
def _imports_mapping_utils(module_text: str) -> bool:
@@ -37,7 +37,7 @@ def test_mapping_utils_imports_are_centralized():
3737
discovered_modules.append(module_path.as_posix())
3838

3939
expected_runtime_modules = sorted(
40-
[*(path.as_posix() for path in MAPPING_READER_TARGET_FILES), MAPPING_TOOL_IMPORTER.as_posix()]
40+
[*(path.as_posix() for path in MAPPING_READER_TARGET_FILES), TOOLS_MODULE.as_posix()]
4141
)
4242
expected_modules = sorted([*expected_runtime_modules, *EXPECTED_MAPPING_EXTRA_IMPORTERS])
4343
assert discovered_modules == expected_modules

0 commit comments

Comments
 (0)