(tmp_path)
| 27 | |
| 28 | |
| 29 | def test_persistence_across_instances(tmp_path): |
| 30 | path = tmp_path / "hashes.json" |
| 31 | r1 = HashRegistry(path) |
| 32 | r1.add("hash1", {"file": "a.pdf"}) |
| 33 | |
| 34 | r2 = HashRegistry(path) |
| 35 | assert r2.is_known("hash1") is True |
| 36 | assert r2.get("hash1") == {"file": "a.pdf"} |
| 37 | |
| 38 | |
| 39 | def test_all_entries_returns_all(tmp_path): |
nothing calls this directly
no test coverage detected