MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_add_and_get

Function test_add_and_get

tests/test_state.py:22–26  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

20
21
22def test_add_and_get(tmp_path):
23 registry = HashRegistry(tmp_path / "hashes.json")
24 metadata = {"filename": "doc.pdf", "pages": 10}
25 registry.add("cafebabe", metadata)
26 assert registry.get("cafebabe") == metadata
27
28
29def test_persistence_across_instances(tmp_path):

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
getMethod · 0.95
HashRegistryClass · 0.90

Tested by

no test coverage detected