

def test_get_errors_to_process_queued_update(self):
    date = datetime.utcnow()
    error = create_error({
        'id': 1,
    }, attempts=0)
    error.date_next_attempt = date
    error.save()
    errors = PillowError.get_errors_to_process(date).all()
    self.assertEqual(len(errors), 1)
    date.update(queued=True)
    errors = PillowError.get_errors_to_process(date).all()
    self.assertEqual(len(errors), 0)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/pillow_retry/tests.py PillowRetryTestCase.test_get_errors_to_process_queued_update/VarMisuse@73/92 `errors`->`date`