From 098385601a9afe0545f68838bc406e9b06474096 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:52:55 -0400 Subject: [PATCH] Update nostr QR menu test --- src/tests/test_nostr_qr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/test_nostr_qr.py b/src/tests/test_nostr_qr.py index 87ce313..11dd99a 100644 --- a/src/tests/test_nostr_qr.py +++ b/src/tests/test_nostr_qr.py @@ -21,7 +21,7 @@ class FakeNostrClient: return None, "abcd" -def test_no_qr_for_nostr_keys(monkeypatch): +def test_show_qr_for_nostr_keys(monkeypatch): with TemporaryDirectory() as tmpdir: tmp_path = Path(tmpdir) vault, enc_mgr = create_vault(tmp_path, TEST_SEED, TEST_PASSWORD) @@ -44,7 +44,7 @@ def test_no_qr_for_nostr_keys(monkeypatch): idx = entry_mgr.add_nostr_key("main") npub, _ = entry_mgr.get_nostr_key_pair(idx, TEST_SEED) - inputs = iter([str(idx), "n", "", ""]) + inputs = iter([str(idx), "q", "p", ""]) monkeypatch.setattr("builtins.input", lambda *a, **k: next(inputs)) called = [] monkeypatch.setattr( @@ -53,4 +53,4 @@ def test_no_qr_for_nostr_keys(monkeypatch): ) pm.handle_retrieve_entry() - assert called == [] + assert called == [f"nostr:{npub}"]