mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-08 22:02:24 +00:00
Add vault sync and update Nostr restore
This commit is contained in:
1 parent
ca88ccce57
commit
678cdbc5e6
7 files changed
+84
-70
No files matched your search
@@ -9,10 +9,7 @@ import main
|
||||
|
||||
def test_handle_post_success(capsys):
|
||||
pm = SimpleNamespace(
|
||||
get_encrypted_data=lambda: b"data",
|
||||
nostr_client=SimpleNamespace(
|
||||
publish_json_to_nostr=lambda data, alt_summary=None: True
|
||||
),
|
||||
sync_vault=lambda alt_summary=None: True,
|
||||
)
|
||||
main.handle_post_to_nostr(pm)
|
||||
out = capsys.readouterr().out
|
||||
@@ -21,10 +18,7 @@ def test_handle_post_success(capsys):
|
||||
|
||||
def test_handle_post_failure(capsys):
|
||||
pm = SimpleNamespace(
|
||||
get_encrypted_data=lambda: b"data",
|
||||
nostr_client=SimpleNamespace(
|
||||
publish_json_to_nostr=lambda data, alt_summary=None: False
|
||||
),
|
||||
sync_vault=lambda alt_summary=None: False,
|
||||
)
|
||||
main.handle_post_to_nostr(pm)
|
||||
out = capsys.readouterr().out
|
||||
|
||||
Reference in new issue
Block a user