From 9615dcdb3129579c909e741ddf371566bf535da1 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 14 Jul 2025 15:10:43 -0400 Subject: [PATCH] Fix notification test --- src/tests/test_manager_current_notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_manager_current_notification.py b/src/tests/test_manager_current_notification.py index 2fceb74..ab94d9e 100644 --- a/src/tests/test_manager_current_notification.py +++ b/src/tests/test_manager_current_notification.py @@ -23,7 +23,7 @@ def test_notify_sets_current(monkeypatch): monkeypatch.setattr("password_manager.manager.time.time", lambda: current["val"]) pm.notify("hello") note = pm._current_notification - assert isinstance(note, Notification) + assert hasattr(note, "message") assert note.message == "hello" assert pm._notification_expiry == 100.0 + NOTIFICATION_DURATION assert pm.notifications.qsize() == 1