mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-30 09:22:03 +00:00
Use background sync in entry service
This commit is contained in:
1 parent
47f26292b1
commit
ff1f8bb4e1
7 files changed
+47
-26
No files matched your search
@@ -36,7 +36,7 @@ def test_cli_entry_add_search_sync(monkeypatch):
|
||||
calls["search"] = (q, kinds)
|
||||
return [(1, "Label", None, None, False)]
|
||||
|
||||
def sync_vault():
|
||||
def start_background_vault_sync():
|
||||
calls["sync"] = True
|
||||
return {"manifest_id": "m", "chunk_ids": [], "delta_ids": []}
|
||||
|
||||
@@ -44,7 +44,8 @@ def test_cli_entry_add_search_sync(monkeypatch):
|
||||
entry_manager=SimpleNamespace(
|
||||
add_entry=add_entry, search_entries=search_entries
|
||||
),
|
||||
sync_vault=sync_vault,
|
||||
start_background_vault_sync=start_background_vault_sync,
|
||||
sync_vault=lambda: {"manifest_id": "m", "chunk_ids": [], "delta_ids": []},
|
||||
select_fingerprint=lambda fp: None,
|
||||
)
|
||||
monkeypatch.setattr(cli, "PasswordManager", lambda: pm)
|
||||
|
||||
Reference in new issue
Block a user