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

Function test_path_directed_respects_direction

tests/test_cli_export.py:488–500  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

486
487
488def test_path_directed_respects_direction(tmp_path):
489 _write_path_graph(
490 tmp_path, ["alpha", "beta", "gamma"],
491 [_calls("alpha", "beta"), _calls("beta", "gamma")],
492 )
493 r = _run(["path", "alpha", "gamma"], tmp_path)
494 assert r.returncode == 0, r.stderr
495 assert r.stdout.count("-->") == 2
496 assert "<--" not in r.stdout
497 # Explicit --directed is the same as the default.
498 r2 = _run(["path", "alpha", "gamma", "--directed"], tmp_path)
499 assert r2.returncode == 0, r2.stderr
500 assert r2.stdout == r.stdout
501
502
503def test_path_directed_backwards_is_no_path(tmp_path):

Callers

nothing calls this directly

Calls 3

_write_path_graphFunction · 0.85
_callsFunction · 0.70
_runFunction · 0.70

Tested by

no test coverage detected