Skip to content

Commit d7a111d

Browse files
Refactor file-path import boundary inventory derivation
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 7703f85 commit d7a111d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/test_file_path_display_helper_import_boundary.py

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

44
import pytest
55

6+
from tests.test_file_path_display_helper_usage import FILE_PATH_DISPLAY_MODULES
7+
68
pytestmark = pytest.mark.architecture
79

810

9-
EXPECTED_FILE_PATH_ERROR_MESSAGE_IMPORTERS = (
10-
"hyperbrowser/client/managers/extension_create_utils.py",
11-
"hyperbrowser/client/managers/session_upload_utils.py",
12-
"tests/test_file_utils.py",
13-
)
11+
EXPECTED_EXTRA_IMPORTERS = ("tests/test_file_utils.py",)
1412

1513

1614
def _imports_build_file_path_error_message(module_text: str) -> bool:
@@ -36,4 +34,5 @@ def test_build_file_path_error_message_imports_are_centralized():
3634
if _imports_build_file_path_error_message(module_text):
3735
discovered_modules.append(module_path.as_posix())
3836

39-
assert discovered_modules == list(EXPECTED_FILE_PATH_ERROR_MESSAGE_IMPORTERS)
37+
expected_modules = sorted([*FILE_PATH_DISPLAY_MODULES, *EXPECTED_EXTRA_IMPORTERS])
38+
assert discovered_modules == expected_modules

0 commit comments

Comments
 (0)