#NEWLINE# @ pytest . fixture #NEWLINE# def jobstore( self , scheduler , job ) : #NEWLINE# #INDENT# jobstore = MagicMock ( BaseJobStore , get_due_jobs = MagicMock ( return_value = [ job ] ) , get_next_run_time = MagicMock ( return_value = None ) ) #NEWLINE# scheduler . _jobstores [ 'default' ] = jobstore #NEWLINE# return jobstore