(tmp_path: Path, nodes: list, links: list)
| 237 | |
| 238 | |
| 239 | def _write_graph(tmp_path: Path, nodes: list, links: list) -> Path: |
| 240 | graph_path = tmp_path / "graph.json" |
| 241 | graph_path.write_text( |
| 242 | json.dumps( |
| 243 | { |
| 244 | "directed": False, |
| 245 | "multigraph": False, |
| 246 | "graph": {}, |
| 247 | "nodes": nodes, |
| 248 | "links": links, |
| 249 | "hyperedges": [], |
| 250 | } |
| 251 | ), |
| 252 | encoding="utf-8", |
| 253 | ) |
| 254 | return graph_path |
| 255 | |
| 256 | |
| 257 | def test_load_graph_preserves_edge_direction(tmp_path): |
no outgoing calls
no test coverage detected