From 5b49c93fcdf0b4f547bc2023560472aa81e4db68 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 22 Jul 2016 11:10:42 +0530 Subject: [PATCH] [fix] [test] test_scheduler --- frappe/tests/test_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/tests/test_scheduler.py b/frappe/tests/test_scheduler.py index 8e2d95a830..55073d3f2f 100644 --- a/frappe/tests/test_scheduler.py +++ b/frappe/tests/test_scheduler.py @@ -32,14 +32,14 @@ class TestScheduler(TestCase): # maintain last_event and next_event on the same day last_event = now_datetime().replace(hour=0, minute=0, second=0, microsecond=0) - next_event = last_event + relativedelta(minute=30) + next_event = last_event + relativedelta(minutes=30) enqueue_applicable_events(frappe.local.site, next_event, last_event) self.assertFalse("all" in frappe.flags.ran_schedulers) # maintain last_event and next_event on the same day last_event = now_datetime().replace(hour=0, minute=0, second=0, microsecond=0) - next_event = last_event + relativedelta(hour=2) + next_event = last_event + relativedelta(hours=2) enqueue_applicable_events(frappe.local.site, next_event, last_event) self.assertTrue("all" in frappe.flags.ran_schedulers)