mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-08 05:42:27 +00:00
Add timed input for inactivity and tests
This commit is contained in:
1 parent
ec4bc51e1f
commit
d270236a41
6 files changed
+81
-6
No files matched your search
@@ -31,7 +31,7 @@ def test_auto_sync_triggers_post(monkeypatch):
|
||||
called = True
|
||||
|
||||
monkeypatch.setattr(main, "handle_post_to_nostr", fake_post)
|
||||
monkeypatch.setattr("builtins.input", lambda _: "5")
|
||||
monkeypatch.setattr(main, "timed_input", lambda *_: "5")
|
||||
|
||||
with pytest.raises(SystemExit):
|
||||
main.display_menu(pm, sync_interval=0.1)
|
||||
|
||||
Reference in new issue
Block a user