(monkeypatch, graph_path, label, capsys)
| 290 | |
| 291 | |
| 292 | def _run_expect_exit(monkeypatch, graph_path, label, capsys): |
| 293 | monkeypatch.setattr(mainmod, "_check_skill_version", lambda _: None) |
| 294 | monkeypatch.setattr(mainmod.sys, "argv", |
| 295 | ["graphify", "explain", label, "--graph", str(graph_path)]) |
| 296 | try: |
| 297 | mainmod.main() |
| 298 | except SystemExit as exc: |
| 299 | return capsys.readouterr().out, exc.code |
| 300 | return capsys.readouterr().out, None |
| 301 | |
| 302 | |
| 303 | def test_explain_ambiguous_label_lists_every_candidate(monkeypatch, tmp_path, capsys): |
no outgoing calls
no test coverage detected