Add schema migrations for index

This commit is contained in:
thePR0M3TH3AN
2025-07-01 21:19:58 -04:00
parent d90b8e572e
commit 5b2c239c21
6 changed files with 96 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ def test_round_trip_across_modes(monkeypatch):
vault.save_index({"pw": 0})
import_backup(vault, backup, path)
assert vault.load_index() == data
assert vault.load_index()["pw"] == data["pw"]
def test_corruption_detection(monkeypatch):
@@ -113,4 +113,5 @@ def test_import_over_existing(monkeypatch):
vault.save_index({"v": 2})
import_backup(vault, backup, path)
assert vault.load_index() == {"v": 1}
loaded = vault.load_index()
assert loaded["v"] == 1