fix(test): fetch unseen notes

This commit is contained in:
sokumon 2025-04-21 19:12:46 +05:30
parent 67c1d13f91
commit 932d5ccc08

View file

@ -1,6 +1,6 @@
import frappe
from frappe.boot import get_user_pages_or_reports
from frappe.desk.doctype.note.note import get_unseen_notes, mark_as_seen
from frappe.desk.doctype.note.note import _get_unseen_notes, get_unseen_notes, mark_as_seen
from frappe.tests import IntegrationTestCase
@ -20,6 +20,7 @@ class TestBootData(IntegrationTestCase):
note.insert()
frappe.set_user("test@example.com")
_get_unseen_notes()
unseen_notes = [d.title for d in get_unseen_notes()]
self.assertListEqual(unseen_notes, ["Test Note"])