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

Function test_write_lock_can_take_nested_read

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

Source from the content-addressed store, hash-verified

70
71
72def test_write_lock_can_take_nested_read(tmp_path):
73 openkb_dir = tmp_path / ".openkb"
74
75 with kb_ingest_lock(openkb_dir):
76 with kb_read_lock(openkb_dir):
77 assert (openkb_dir / "ingest.lock").exists()
78
79
80def test_atomic_write_text_replaces_file(tmp_path):

Callers

nothing calls this directly

Calls 2

kb_ingest_lockFunction · 0.90
kb_read_lockFunction · 0.90

Tested by

no test coverage detected