

def test_create_job_with_ttl(self):
    '\n        Ensure that TTL is passed to RQ.\n        '
    job = self.scheduler._create_job(say_hello, ttl=2, args=(), kwargs={
        
    })
    job_from_queue = Job.fetch(job.id, connection=self.testconn)
    self.assertEqual(2, job_from_queue.ttl)

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