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

Function test_reset_state

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

Source from the content-addressed store, hash-verified

45
46
47def test_reset_state(tmp_path):
48 state = LearnedState(signal_weights=[0.1, 0.9], shadow_promoted=True)
49 save_state(state, tmp_path)
50 reset_state(tmp_path)
51 loaded = load_state(tmp_path)
52 assert loaded.signal_weights == [0.55, 0.45]
53 assert not loaded.shadow_promoted

Callers

nothing calls this directly

Calls 4

LearnedStateClass · 0.90
save_stateFunction · 0.90
reset_stateFunction · 0.90
load_stateFunction · 0.90

Tested by

no test coverage detected