(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 | (tmp_path / name).write_text(body) |
| 23 | old = os.getcwd() |
| 24 | try: |
| 25 | os.chdir(tmp_path) |
| 26 | return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp())) |
| 27 | finally: |
| 28 | os.chdir(old) |
| 29 | |
| 30 | |
| 31 | def _pairs(r, relation): |
no test coverage detected