(tmp_path)
| 31 | |
| 32 | |
| 33 | def 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 | |
| 41 | def test_corrupt_file_returns_defaults(tmp_path): |
nothing calls this directly
no test coverage detected