mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 15:58:48 +00:00
Fix decryption migration logic
This commit is contained in:
@@ -23,9 +23,7 @@ def test_parent_seed_migrates_from_fernet(tmp_path: Path) -> None:
|
||||
assert decrypted == TEST_SEED
|
||||
|
||||
new_file = tmp_path / "parent_seed.enc"
|
||||
legacy_backup = tmp_path / "parent_seed.enc.fernet"
|
||||
|
||||
assert new_file.exists()
|
||||
assert legacy_backup.exists()
|
||||
assert new_file.read_bytes() != encrypted
|
||||
assert legacy_backup.read_bytes() == encrypted
|
||||
assert new_file.read_bytes().startswith(b"V2:")
|
||||
|
Reference in New Issue
Block a user