Simplify menus with Enter navigation

This commit is contained in:
thePR0M3TH3AN
2025-07-06 07:57:02 -04:00
parent d40a64f6da
commit 876ed71f74
8 changed files with 31 additions and 44 deletions

View File

@@ -36,7 +36,7 @@ def test_inactivity_triggers_lock(monkeypatch):
unlock_vault=unlock_vault,
)
monkeypatch.setattr(main, "timed_input", lambda *_: "8")
monkeypatch.setattr(main, "timed_input", lambda *_: "")
with pytest.raises(SystemExit):
main.display_menu(pm, sync_interval=1000, inactivity_timeout=0.1)
@@ -72,7 +72,7 @@ def test_input_timeout_triggers_lock(monkeypatch):
unlock_vault=unlock_vault,
)
responses = iter([TimeoutError(), "8"])
responses = iter([TimeoutError(), ""])
def fake_input(*_args, **_kwargs):
val = next(responses)