MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _run_expect_exit

Function _run_expect_exit

tests/test_explain_cli.py:292–300  ·  view source on GitHub ↗
(monkeypatch, graph_path, label, capsys)

Source from the content-addressed store, hash-verified

290
291
292def _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
303def test_explain_ambiguous_label_lists_every_candidate(monkeypatch, tmp_path, capsys):

Calls

no outgoing calls

Tested by

no test coverage detected