(tmp_path, files: dict[str, str])
| 18 | |
| 19 | |
| 20 | def _extract(tmp_path, files: dict[str, str]): |
| 21 | for name, body in files.items(): |
| 22 | p = tmp_path / name |
| 23 | p.parent.mkdir(parents=True, exist_ok=True) |
| 24 | p.write_text(body) |
| 25 | old = os.getcwd() |
| 26 | try: |
| 27 | os.chdir(tmp_path) |
| 28 | r = extract([Path(n) for n in files], |
| 29 | cache_root=tmp_path / ".cache", parallel=False) |
| 30 | finally: |
| 31 | os.chdir(old) |
| 32 | return r |
| 33 | |
| 34 | |
| 35 | def _labels(r): |
no test coverage detected