#NEWLINE# def test_enabled_events( self ) : #NEWLINE# #INDENT# val = json . dumps ( [ 'daily' , 'daily_long' , 'weekly' , 'weekly_long' , 'monthly' , 'monthly_long' ] ) #NEWLINE# frappe . db . set_global ( 'enabled_scheduler_events' , val ) #NEWLINE# last_event = now_datetime ( ) . replace ( hour = 0 , minute = 0 , second = 0 , microsecond = 0 ) #NEWLINE# next_event = ( last_event + relativedelta ( hours = 2 ) ) #NEWLINE# enqueue_applicable_events ( frappe . local . site , next_event , self ) #NEWLINE# self . assertFalse ( ( 'all' in frappe . flags . ran_schedulers ) ) #NEWLINE# self . assertFalse ( ( 'hourly' in frappe . flags . ran_schedulers ) ) #NEWLINE# frappe . db . set_global ( 'enabled_scheduler_events' , '' )