(root: Path, files: dict[str, str])
| 26 | |
| 27 | |
| 28 | def _write(root: Path, files: dict[str, str]) -> list[Path]: |
| 29 | files = {"pkg/__init__.py": "", **{f"pkg/{n}": b for n, b in files.items()}} |
| 30 | paths = [] |
| 31 | for name, body in files.items(): |
| 32 | p = root / name |
| 33 | p.parent.mkdir(parents=True, exist_ok=True) |
| 34 | p.write_text(body, encoding="utf-8") |
| 35 | paths.append(p) |
| 36 | return paths |
| 37 | |
| 38 | |
| 39 | def _calls(tmp_path, files: dict[str, str]): |
no test coverage detected