

def test_missing_jobs_removed_from_scheduler(self):
    "\n        Ensure jobs that don't exist when queued are removed from the scheduler.\n        "
    job = self.scheduler.schedule(datetime.utcnow(), say_hello)
    job.cancel()
    self.scheduler.get_jobs_to_queue()
    self.assertNotIn(job.id, tl(self.testconn.zrange(self.scheduler.scheduled_jobs_key, 0, 1)))

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