Refactor notification handling

This commit is contained in:
thePR0M3TH3AN
2025-07-14 15:40:46 -04:00
parent fb5fd7bfb8
commit 9184222514
3 changed files with 43 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ def _make_pm():
def test_live_stats_shows_message(monkeypatch, capsys):
pm = _make_pm()
monkeypatch.setattr(main, "drain_notifications", lambda *_: None)
monkeypatch.setattr(main, "get_notification_text", lambda *_: "")
monkeypatch.setattr(
main,
"timed_input",
@@ -27,7 +27,7 @@ def test_live_stats_shows_message(monkeypatch, capsys):
def test_live_stats_shows_notification(monkeypatch, capsys):
pm = _make_pm()
monkeypatch.setattr(main, "drain_notifications", lambda *_: "note")
monkeypatch.setattr(main, "get_notification_text", lambda *_: "note")
monkeypatch.setattr(
main,
"timed_input",