(tmp_path)
| 78 | |
| 79 | |
| 80 | def test_atomic_write_text_replaces_file(tmp_path): |
| 81 | target = tmp_path / "nested" / "file.txt" |
| 82 | atomic_write_text(target, "first") |
| 83 | atomic_write_text(target, "second") |
| 84 | |
| 85 | assert target.read_text(encoding="utf-8") == "second" |
| 86 | assert list(target.parent.glob("*.tmp")) == [] |
| 87 | |
| 88 | |
| 89 | def test_atomic_write_text_preserves_existing_mode(tmp_path): |
nothing calls this directly
no test coverage detected