Different file contents give different hashes.
(tmp_path)
| 50 | |
| 51 | |
| 52 | def test_file_hash_changes(tmp_path): |
| 53 | """Different file contents give different hashes.""" |
| 54 | f1 = tmp_path / "a.txt" |
| 55 | f2 = tmp_path / "b.txt" |
| 56 | f1.write_text("content one") |
| 57 | f2.write_text("content two") |
| 58 | assert file_hash(f1) != file_hash(f2) |
| 59 | |
| 60 | |
| 61 | def test_cache_roundtrip(tmp_file, cache_root): |
nothing calls this directly
no test coverage detected