

def test_job_with_crontab_get_rescheduled(self):
    job = self.scheduler.cron('1 * * * *', say_hello)
    old_next_scheduled_time = self.testconn.zscore(self.scheduler.scheduled_jobs_key, job.id)
    expected_next_scheduled_time.meta['cron_string'] = '2 * * * *'
    self.scheduler.enqueue_job(job)
    self.assertIn(job.id, tl(self.testconn.zrange(self.scheduler.scheduled_jobs_key, 0, 1)))
    self.assertNotEqual(old_next_scheduled_time, self.testconn.zscore(self.scheduler.scheduled_jobs_key, job.id))
    expected_next_scheduled_time = to_unix(get_next_scheduled_time('2 * * * *'))
    self.assertEqual(self.testconn.zscore(self.scheduler.scheduled_jobs_key, job.id), expected_next_scheduled_time)

dataset/ETHPy150Open ui/rq-scheduler/tests/test_scheduler.py TestScheduler.test_job_with_crontab_get_rescheduled/VarMisuse@42/75 `job`->`expected_next_scheduled_time`