

def test_interval_and_repeat_persisted_correctly(self):
    '\n        Ensure that interval and repeat attributes get correctly saved in Redis.\n        '
    job = self.scheduler.schedule(datetime.utcnow(), say_hello, interval=10, repeat=11)
    job_from_queue = Job.fetch(job.id, connection=self.testconn)
    self.assertEqual(job_from_queue.meta['interval'], 10)
    self.assertEqual(job_from_queue.meta['repeat'], 11)

dataset/ETHPy150Open ui/rq-scheduler/tests/test_scheduler.py TestScheduler.test_interval_and_repeat_persisted_correctly/original