Esempio n. 1
0
def generate_test_parole_decision(person_id) -> state_schema.StateParoleDecision:
    instance = state_schema.StateParoleDecision(
        parole_decision_id=789,
        state_code="us_ca",
        decision_outcome=StateParoleDecisionOutcome.PAROLE_DENIED.value,
        person_id=person_id,
    )
    return instance
Esempio n. 2
0
def generate_parole_decision(person, **kwargs) -> schema.StateParoleDecision:
    args = {
        "state_code": _STATE_CODE,
    }
    args.update(kwargs)
    return schema.StateParoleDecision(person=person, **args)