(monkeypatch, tmp_path, capsys)
| 73 | |
| 74 | |
| 75 | def test_cycles_cli_json(monkeypatch, tmp_path, capsys): |
| 76 | gp = _write_cycle_graph(tmp_path) |
| 77 | _run(monkeypatch, ["graphify", "cycles", "--graph", str(gp), "--json"]) |
| 78 | data = json.loads(capsys.readouterr().out) |
| 79 | assert isinstance(data, list) and len(data) == 2 |
| 80 | assert data[0] == {"cycle": ["a.py", "b.py"], "length": 2, "why": "circular dependency"} |
| 81 | |
| 82 | |
| 83 | def test_cycles_cli_distinguishes_stylesheet_import_from_self_import(monkeypatch, tmp_path, capsys): |
nothing calls this directly
no test coverage detected