

def test_get_pending_jobs(jobstore, create_add_job, timezone):
    create_add_job(jobstore, dummy_job, datetime(2016, 5, 3))
    job2 = create_add_job(jobstore, dummy_job2, datetime(2014, 2, 26))
    job3 = create_add_job(jobstore, dummy_job3, datetime(2013, 8, 14))
    create_add_job(jobstore, dummy_job3, datetime(2013, 7, 11), paused=True)
    jobs = jobstore.get_due_jobs(timezone.localize(datetime(2014, 2, 27)))
    assert (jobs == [job3, job2])
    jobs = jobstore.get_due_jobs(timezone.localize(datetime(2013, 8, 13)))
    assert (jobs == [])

dataset/ETHPy150Open agronholm/apscheduler/tests/test_jobstores.py test_get_pending_jobs/original