migration system

This commit is contained in:
2026-06-24 18:32:51 -04:00
parent 3ec04552b0
commit 42cfe4823b
4 changed files with 19 additions and 3 deletions

View File

@@ -24,3 +24,11 @@ def test_save_load_roundtrip(tmp_path):
"personality": "judges you silently",
}
assert loaded.version == 1
def test_list_saves(tmp_path):
open(tmp_path / "test.kitten", "w").close()
open(tmp_path / "test2.kitten", "w").close()
saves = persistence.list_saves(tmp_path)
assert "test" in saves
assert "test2" in saves