Keep TOTP retrieval active

This commit is contained in:
thePR0M3TH3AN
2025-07-03 10:17:42 -04:00
parent 7e83a74a64
commit 3d65800eb2
2 changed files with 21 additions and 6 deletions

View File

@@ -43,6 +43,10 @@ def test_handle_retrieve_totp_entry(monkeypatch, capsys):
monkeypatch.setattr("builtins.input", lambda *a, **k: "0")
monkeypatch.setattr(pm.entry_manager, "get_totp_code", lambda *a, **k: "123456")
monkeypatch.setattr(TotpManager, "print_progress_bar", lambda period: None)
monkeypatch.setattr(
"password_manager.manager.select.select",
lambda *a, **k: (_ for _ in ()).throw(KeyboardInterrupt()),
)
pm.handle_retrieve_entry()
out = capsys.readouterr().out