MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_file_hash_changes

Function test_file_hash_changes

tests/test_cache.py:52–58  ·  view source on GitHub ↗

Different file contents give different hashes.

(tmp_path)

Source from the content-addressed store, hash-verified

50
51
52def 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
61def test_cache_roundtrip(tmp_file, cache_root):

Callers

nothing calls this directly

Calls 1

file_hashFunction · 0.90

Tested by

no test coverage detected