| 16 | sandbox_client: SandboxClient, |
| 17 | ) -> None: |
| 18 | class _FileOps: |
| 19 | def write(self, path: str, content: str) -> None: |
| 20 | from pathlib import Path |
| 21 | |
| 22 | Path(path).write_text(content) |
| 23 | |
| 24 | def read(self, path: str) -> str: |
| 25 | from pathlib import Path |
| 26 | |
| 27 | return Path(path).read_text() |
| 28 | |
| 29 | with sandbox(delete_on_exit=True) as sb: |
| 30 | assert sb.id |
no outgoing calls