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

Function test_read_to_write_upgrade_fails

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

Source from the content-addressed store, hash-verified

61
62
63def test_read_to_write_upgrade_fails(tmp_path):
64 openkb_dir = tmp_path / ".openkb"
65
66 with kb_read_lock(openkb_dir):
67 with pytest.raises(RuntimeError, match="Cannot upgrade"):
68 with kb_ingest_lock(openkb_dir):
69 pass
70
71
72def test_write_lock_can_take_nested_read(tmp_path):

Callers

nothing calls this directly

Calls 2

kb_read_lockFunction · 0.90
kb_ingest_lockFunction · 0.90

Tested by

no test coverage detected