fix(test): fetch unseen notes
This commit is contained in:
parent
67c1d13f91
commit
932d5ccc08
1 changed files with 2 additions and 1 deletions
|
|
@ -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"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue