Skip to content

Commit d6a85b3

Browse files
Refactor mapping usage guard to canonical tools path
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent f24760d commit d6a85b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_mapping_helpers_usage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
import pytest
44

55
from tests.guardrail_ast_utils import collect_name_call_lines, read_module_ast
6+
from tests.test_tool_mapping_reader_usage import TOOLS_MODULE
67

78
pytestmark = pytest.mark.architecture
89

910
HYPERBROWSER_ROOT = Path(__file__).resolve().parents[1] / "hyperbrowser"
11+
TOOLS_MODULE_UNDER_HYPERBROWSER = TOOLS_MODULE.relative_to("hyperbrowser")
1012
ALLOWED_READ_KEYS_CALL_FILES = {
1113
Path("mapping_utils.py"),
12-
Path("tools/__init__.py"),
14+
TOOLS_MODULE_UNDER_HYPERBROWSER,
1315
}
1416
ALLOWED_COPY_VALUES_CALL_FILES = {
1517
Path("mapping_utils.py"),
16-
Path("tools/__init__.py"),
18+
TOOLS_MODULE_UNDER_HYPERBROWSER,
1719
}
1820

1921

0 commit comments

Comments
 (0)