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

Function test_restore_iteration_specific_n

tests/test_skill_workspace.py:104–111  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

102
103
104def test_restore_iteration_specific_n(tmp_path):
105 _make_skill(tmp_path, "demo", description="v1")
106 save_iteration(tmp_path, "demo")
107 _make_skill(tmp_path, "demo", description="v2")
108 save_iteration(tmp_path, "demo")
109
110 restored = restore_iteration(tmp_path, "demo", n=1)
111 assert "v1" in (restored / "SKILL.md").read_text()
112
113
114def test_restore_iteration_missing_raises(tmp_path):

Callers

nothing calls this directly

Calls 3

save_iterationFunction · 0.90
restore_iterationFunction · 0.90
_make_skillFunction · 0.70

Tested by

no test coverage detected