mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 07:48:57 +00:00
Refactor EntryManager to use BackupManager
This commit is contained in:
@@ -4,12 +4,14 @@ import math
|
||||
|
||||
from helpers import create_vault, dummy_nostr_client
|
||||
from password_manager.entry_management import EntryManager
|
||||
from password_manager.backup import BackupManager
|
||||
from nostr.client import prepare_snapshot
|
||||
|
||||
|
||||
def test_manifest_generation(tmp_path):
|
||||
vault, enc_mgr = create_vault(tmp_path)
|
||||
entry_mgr = EntryManager(vault, tmp_path)
|
||||
backup_mgr = BackupManager(tmp_path)
|
||||
entry_mgr = EntryManager(vault, backup_mgr)
|
||||
entry_mgr.add_entry("example.com", 12)
|
||||
entry_mgr.add_entry("test.com", 12)
|
||||
encrypted = vault.get_encrypted_index()
|
||||
|
Reference in New Issue
Block a user