test: cover legacy migration prompt

This commit is contained in:
thePR0M3TH3AN
2025-08-03 19:20:50 -04:00
parent 1ca84ba946
commit d7a39c88d3
3 changed files with 79 additions and 1 deletions

View File

@@ -76,6 +76,9 @@ class Vault:
)
data = self.encryption_manager.load_json_data(self.index_file)
self.migrated_from_legacy = self.migrated_from_legacy or getattr(
self.encryption_manager, "last_migration_performed", False
)
from .migrations import apply_migrations, LATEST_VERSION
version = data.get("schema_version", 0)