mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-14 18:19:37 +00:00
Return all Nostr event IDs
This commit is contained in:
@@ -9,12 +9,17 @@ import main
|
||||
|
||||
def test_handle_post_success(capsys):
|
||||
pm = SimpleNamespace(
|
||||
sync_vault=lambda alt_summary=None: "abcd",
|
||||
sync_vault=lambda alt_summary=None: {
|
||||
"manifest_id": "abcd",
|
||||
"chunk_ids": ["c1", "c2"],
|
||||
"delta_ids": ["d1"],
|
||||
},
|
||||
)
|
||||
main.handle_post_to_nostr(pm)
|
||||
out = capsys.readouterr().out
|
||||
assert "✅ Sync complete." in out
|
||||
assert "abcd" in out
|
||||
assert "c1" in out and "c2" in out and "d1" in out
|
||||
|
||||
|
||||
def test_handle_post_failure(capsys):
|
||||
|
Reference in New Issue
Block a user