@pytest.fixture
def jobs_with_one_pending(successful_jobs):
    index_in_range = get_middle_index(successful_jobs)
    job_pending = successful_jobs[index_in_range]
    job_pending.result = 'unknown'
    job_pending.save()
@pytest.fixture
def jobs_with_one_pending(successful_jobs):
    index_in_range = get_middle_index(successful_jobs)
    job_pending = successful_jobs[index_in_range]
    job_pending.result = 'unknown'
    job_pending.save()