(tmp_path, graph: nx.Graph)
| 93 | |
| 94 | |
| 95 | def _write_graph(tmp_path, graph: nx.Graph) -> str: |
| 96 | from graphify.paths import GRAPHIFY_OUT_NAME |
| 97 | |
| 98 | out_dir = tmp_path / "repo" / GRAPHIFY_OUT_NAME |
| 99 | out_dir.mkdir(parents=True) |
| 100 | gp = out_dir / "graph.json" |
| 101 | gp.write_text(json.dumps(json_graph.node_link_data(graph, edges="links")), encoding="utf-8") |
| 102 | return str(gp) |
| 103 | |
| 104 | |
| 105 | def _run_affected(monkeypatch, graph_path: str, query: str) -> int: |
no outgoing calls
no test coverage detected