(tmp_path)
| 75 | |
| 76 | |
| 77 | def test_load_existing_json(tmp_path): |
| 78 | path = tmp_path / "hashes.json" |
| 79 | data = {"existinghash": {"file": "pre.pdf"}} |
| 80 | path.write_text(json.dumps(data)) |
| 81 | registry = HashRegistry(path) |
| 82 | assert registry.is_known("existinghash") is True |
| 83 | assert registry.get("existinghash") == {"file": "pre.pdf"} |
| 84 | |
| 85 | |
| 86 | def test_get_by_path_matches_path_raw_path_and_source_path(tmp_path): |
nothing calls this directly
no test coverage detected