Run sync in background for TUI actions

This commit is contained in:
thePR0M3TH3AN
2025-07-14 14:16:59 -04:00
parent a8ba99875f
commit ba066bf0d4
4 changed files with 38 additions and 12 deletions

View File

@@ -71,6 +71,12 @@ def test_manager_workflow(monkeypatch):
)
monkeypatch.setattr("builtins.input", lambda *args, **kwargs: next(inputs))
monkeypatch.setattr(
pm,
"start_background_vault_sync",
lambda *a, **k: pm.sync_vault(*a, **k),
)
pm.handle_add_password()
assert pm.is_dirty is False
backups = list((tmp_path / "backups").glob("entries_db_backup_*.json.enc"))