[minor] fix test

This commit is contained in:
Rushabh Mehta 2016-11-04 18:52:16 +05:30
parent de1d4b2056
commit b2633ef36e

View file

@ -49,7 +49,7 @@ class TestEmail(unittest.TestCase):
def test_expired(self):
self.test_email_queue()
frappe.db.sql("update `tabEmail Queue` set creation=DATE_SUB(curdate(), interval 8 day)")
frappe.db.sql("update `tabEmail Queue` set modified=DATE_SUB(curdate(), interval 8 day)")
from frappe.email.queue import clear_outbox
clear_outbox()
email_queue = frappe.db.sql("""select * from `tabEmail Queue` where status='Expired'""", as_dict=1)