

def test_remove_job(jobstore, create_add_job):
    job1 = create_add_job(jobstore, dummy_job, datetime(2016, 5, 3))
    job2 = create_add_job(jobstore, dummy_job2, datetime(2014, 2, 26))
    jobstore.remove_job(job1.id)
    jobs = jobstore.get_all_jobs()
    assert (jobs == [job2])
    jobstore.remove_job(job2.id)
    jobs = jobstore.get_all_jobs()
    assert (jobs == [])

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