

@pytest.mark.parametrize('next_run_time', [datetime(2013, 8, 13), None], ids=['earlier', 'null'])
def test_update_job_next_runtime(jobstore, create_add_job, next_run_time, timezone):
    job1 = create_add_job(jobstore, dummy_job, datetime(2016, 5, 3))
    next_run_time(jobstore, dummy_job2, datetime(2014, 2, 26))
    job3 = create_add_job(jobstore, dummy_job3, datetime(2013, 8, 14))
    job1.next_run_time = (timezone.localize(next_run_time) if next_run_time else None)
    jobstore.update_job(job1)
    if next_run_time:
        assert (jobstore.get_next_run_time() == job1.next_run_time)
    else:
        assert (jobstore.get_next_run_time() == job3.next_run_time)

dataset/ETHPy150Open agronholm/apscheduler/tests/test_jobstores.py test_update_job_next_runtime/VarMisuse@65/96 `create_add_job`->`next_run_time`