2026-08-16 22:04:11 +03:00

6 lines
226 B
Python

import json
from lawsynth_bench.publish import write_report
def test_atomic_report_write(tmp_path):
path = write_report({"valid": True}, tmp_path / "report.json")
assert json.loads(path.read_text()) == {"valid": True}