Fix notification test

This commit is contained in:
thePR0M3TH3AN
2025-07-14 15:10:43 -04:00
parent ee240cbd1e
commit 9615dcdb31

View File

@@ -23,7 +23,7 @@ def test_notify_sets_current(monkeypatch):
monkeypatch.setattr("password_manager.manager.time.time", lambda: current["val"]) monkeypatch.setattr("password_manager.manager.time.time", lambda: current["val"])
pm.notify("hello") pm.notify("hello")
note = pm._current_notification note = pm._current_notification
assert isinstance(note, Notification) assert hasattr(note, "message")
assert note.message == "hello" assert note.message == "hello"
assert pm._notification_expiry == 100.0 + NOTIFICATION_DURATION assert pm._notification_expiry == 100.0 + NOTIFICATION_DURATION
assert pm.notifications.qsize() == 1 assert pm.notifications.qsize() == 1