fix(test): the test event has hanged frequency
This commit is contained in:
parent
8d4610504a
commit
d1e4616231
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class TestScheduledJobType(unittest.TestCase):
|
|||
self.assertFalse(job.is_event_due(get_datetime('2019-01-01 23:59:59')))
|
||||
|
||||
def test_weekly_job(self):
|
||||
job = frappe.get_doc('Scheduled Job Type', dict(method = 'frappe.utils.change_log.check_for_update'))
|
||||
job = frappe.get_doc('Scheduled Job Type', dict(method = 'frappe.social.doctype.energy_point_log.energy_point_log.send_weekly_summary'))
|
||||
job.db_set('last_execution', '2019-01-01 00:00:00')
|
||||
self.assertTrue(job.is_event_due(get_datetime('2019-01-06 00:00:01')))
|
||||
self.assertFalse(job.is_event_due(get_datetime('2019-01-02 00:00:06')))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue