Skip to content

Commit c5a7815

Browse files
committed
test: isolate platform installs from user home
1 parent 28242e6 commit c5a7815

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_skills.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,8 @@ def test_install_all_detected(self, tmp_path):
11961196
"gemini-cli": {**PLATFORMS["gemini-cli"], "detect": lambda: False},
11971197
},
11981198
):
1199-
configured = install_platform_configs(tmp_path, target="all")
1199+
with patch("code_review_graph.skills.Path.home", return_value=tmp_path):
1200+
configured = install_platform_configs(tmp_path, target="all")
12001201
assert "Codex" in configured
12011202
assert "Claude Code" in configured
12021203
assert "OpenCode" in configured
@@ -2216,7 +2217,8 @@ def _run_install(self, tmp_path, platform: str) -> bool:
22162217
no_instructions=True,
22172218
)
22182219
with patch("builtins.input", return_value="n"):
2219-
crg_cli._handle_init(args)
2220+
with patch("code_review_graph.skills.Path.home", return_value=tmp_path):
2221+
crg_cli._handle_init(args)
22202222
return (tmp_path / ".claude" / "skills").is_dir()
22212223

22222224
def test_cursor_install_does_not_create_claude_skills(self, tmp_path):

0 commit comments

Comments
 (0)