from pathlib import Path
from tempfile import TemporaryDirectory
from babregen.review.runs import read_run
record = (
'unit = "calc"\nprotocol = "score"\nstatus = "completed"\n'
'[base]\ncommit = "' + "a" * 40 + '"\n[final]\nattempt = 1\n'
"[[attempt]]\nn = 1\nwrote_module = true\n"
)
with TemporaryDirectory() as tmp:
(Path(tmp) / "run.toml").write_text(record)
print(read_run(Path(tmp)).files)('run.toml',)