mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 07:18:47 +00:00
Fix notification test
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user