From 4b6bfbcc520361318f60c7d1de33724be7e9a82e Mon Sep 17 00:00:00 2001 From: "duanjialing.777" Date: Fri, 2 Oct 2026 19:21:47 +0800 Subject: [PATCH] test(cli): align doctor dispatch runtime paths Signed-off-by: duanjialing.777 --- tests/test_cli_entrypoint.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_cli_entrypoint.py b/tests/test_cli_entrypoint.py index 3db73abb27..606a921ae8 100644 --- a/tests/test_cli_entrypoint.py +++ b/tests/test_cli_entrypoint.py @@ -354,6 +354,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 @@ -368,7 +369,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)