diff --git a/frappe/email/doctype/email_alert/test_email_alert.py b/frappe/email/doctype/email_alert/test_email_alert.py index 302f40a717..53bfe777a1 100755 --- a/frappe/email/doctype/email_alert/test_email_alert.py +++ b/frappe/email/doctype/email_alert/test_email_alert.py @@ -132,6 +132,7 @@ class TestEmailAlert(unittest.TestCase): self.assertFalse(frappe.db.get_value("Email Queue", {"reference_doctype": "Event", "reference_name": event.name, "status":"Not Sent"})) + frappe.set_user('Administrator') frappe.utils.scheduler.trigger(frappe.local.site, "daily", now=True) # not today, so no alert