(tmp_path, files: dict[str, str])
| 23 | |
| 24 | |
| 25 | def _extract(tmp_path, files: dict[str, str]): |
| 26 | for name, body in files.items(): |
| 27 | p = tmp_path / name |
| 28 | p.parent.mkdir(parents=True, exist_ok=True) |
| 29 | p.write_text(body) |
| 30 | old = os.getcwd() |
| 31 | try: |
| 32 | os.chdir(tmp_path) |
| 33 | return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp())) |
| 34 | finally: |
| 35 | os.chdir(old) |
| 36 | |
| 37 | |
| 38 | def _ids(r, label): |
no test coverage detected