(tmp_path)
| 486 | |
| 487 | |
| 488 | def 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 | |
| 503 | def test_path_directed_backwards_is_no_path(tmp_path): |
nothing calls this directly
no test coverage detected