Fix menu numbering and add list entries test

This commit is contained in:
thePR0M3TH3AN
2025-07-05 09:34:45 -04:00
parent ce90e7348f
commit ed00cbc34b
6 changed files with 53 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ def _make_pm(called):
def test_menu_search_option(monkeypatch):
called = []
pm = _make_pm(called)
inputs = iter(["3", "7"])
inputs = iter(["3", "8"])
monkeypatch.setattr(main, "timed_input", lambda *_: next(inputs))
monkeypatch.setattr("builtins.input", lambda *_: "query")
with pytest.raises(SystemExit):