def generate_test_early_discharge(person_id) -> state_schema.StateEarlyDischarge:
    instance = state_schema.StateEarlyDischarge(
        early_discharge_id=1,
        external_id='external_id',
        state_code='us_ca',
        person_id=person_id,
        decision=StateEarlyDischargeDecision.REQUEST_DENIED.value,
    )
    return instance
示例#2
0
def generate_early_discharge(person, **kwargs) -> schema.StateEarlyDischarge:
    args = {
        "state_code": _STATE_CODE,
    }
    args.update(kwargs)
    return schema.StateEarlyDischarge(person=person, **args)