Skip to content

Commit 9c713b9

Browse files
committed
Fix CI: use dynamic HOME in allowlist test
The test hardcoded /home/vscode but CI runs as /home/runner. Use the module's _home variable to match the actual environment.
1 parent bcfbe06 commit 9c713b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/plugins/test_guard_workspace_scope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ class TestIsAllowlisted:
6666
@pytest.mark.parametrize(
6767
"path, expected",
6868
[
69-
("/home/vscode/.claude/rules/foo.md", True),
69+
(f"{guard_workspace_scope._home}/.claude/rules/foo.md", True),
7070
("/tmp/scratch.txt", True),
7171
("/workspaces/proj/file", False),
72-
("/home/vscode/.ssh/id_rsa", False),
72+
(f"{guard_workspace_scope._home}/.ssh/id_rsa", False),
7373
],
7474
ids=[
7575
"claude_config_dir",

0 commit comments

Comments
 (0)