(tmp_path)
| 98 | |
| 99 | |
| 100 | def test_atomic_write_json_replaces_file(tmp_path): |
| 101 | target = tmp_path / "hashes.json" |
| 102 | |
| 103 | atomic_write_json(target, {"a": {"name": "doc.pdf"}}, ensure_ascii=False) |
| 104 | |
| 105 | assert json.loads(target.read_text(encoding="utf-8")) == {"a": {"name": "doc.pdf"}} |
nothing calls this directly
no test coverage detected