Skip to content
9 changes: 8 additions & 1 deletion tests/test_cli_entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def test_doctor_dispatch_preserves_owner_flags_and_failure(
import contextlib
import io
import json
from pathlib import Path

import loopx.cli_commands.doctor as owner
from {module} import main
Expand All @@ -369,7 +370,13 @@ def collect(**kwargs):
code = main(["--format", "markdown", "doctor", "--format", "json",
"--deep", "--installation-only"])
assert code == {0 if healthy else 1}
assert observed == [{{"deep": True, "agent_type": None, "installation_only": True}}]
assert observed == [{{
"deep": True,
"agent_type": None,
"installation_only": True,
"registry_path": Path(".loopx/registry.json"),
"runtime_root_override": None,
}}]
assert json.loads(output.getvalue()) == {{"ok": {healthy!r}, "scope": "installation_only"}}
"""
completed = run_isolated_script(script)
Expand Down
Loading