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

Function test_atomic_write_json_replaces_file

tests/test_locks.py:100–105  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

98
99
100def test_atomic_write_json_replaces_file(tmp_path):
101 target = tmp_path / "hashes.json"
102
103 atomic_write_json(target, {"a": {"name": "doc.pdf"}}, ensure_ascii=False)
104
105 assert json.loads(target.read_text(encoding="utf-8")) == {"a": {"name": "doc.pdf"}}

Callers

nothing calls this directly

Calls 1

atomic_write_jsonFunction · 0.90

Tested by

no test coverage detected