(tmp_path)
| 45 | |
| 46 | |
| 47 | def 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 |
nothing calls this directly
no test coverage detected