(tmp_path: Path, files: dict[str, str])
| 21 | |
| 22 | |
| 23 | def _extract(tmp_path: Path, files: dict[str, str]): |
| 24 | for name, body in files.items(): |
| 25 | p = tmp_path / name |
| 26 | p.parent.mkdir(parents=True, exist_ok=True) |
| 27 | p.write_text(body) |
| 28 | r = extract( |
| 29 | sorted(tmp_path / n for n in files), |
| 30 | cache_root=tmp_path / "cache", |
| 31 | root=tmp_path, |
| 32 | parallel=False, |
| 33 | ) |
| 34 | dispatch = {(e["source"], e["target"]) for e in r["edges"] |
| 35 | if e["relation"] == "dispatches_to"} |
| 36 | return dispatch, r |
| 37 | |
| 38 | |
| 39 | def _fixture_files() -> dict[str, str]: |
no test coverage detected