MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_schema_version_stored

Function test_schema_version_stored

tests/test_persistence.py:33–38  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

31
32
33def test_schema_version_stored(tmp_path):
34 state = LearnedState()
35 save_state(state, tmp_path)
36 with open(tmp_path / "learned_state.json") as f:
37 data = json.load(f)
38 assert data["schema_version"] == 1
39
40
41def test_corrupt_file_returns_defaults(tmp_path):

Callers

nothing calls this directly

Calls 4

LearnedStateClass · 0.90
save_stateFunction · 0.90
openFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected