Skip to content

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

test(doctor): assert diagnostics are read-only

Pnant795d53f3c8d0
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 4c26588c..86790775 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -36,7 +36,7 @@ class TestCLI:
assert "Agent Reach" in captured.out
assert "✅" in captured.out
- def test_doctor_preserves_existing_skill_install(self, monkeypatch, tmp_path, capsys):
+ def test_doctor_never_touches_existing_skill_install(self, monkeypatch, tmp_path, capsys):
skill_dir = tmp_path / ".agents" / "skills" / "agent-reach"
skill_dir.mkdir(parents=True)
skill_file = skill_dir / "SKILL.md"
@@ -58,8 +58,9 @@ class TestCLI:
assert skill_file.read_text(encoding="utf-8") == custom_content
out = capsys.readouterr().out
- assert "preserving existing files" in out
- assert f"Skill installed for Agent: {skill_dir}" not in out
+ assert "report" in out
+ assert "Skill installed" not in out
+ assert "preserving existing files" not in out
def test_transcribe_command_prints_text(self, capsys):
with patch("agent_reach.transcribe.transcribe", return_value="hello transcript"):