Esempio n. 1
0
def generate_bond(person, **kwargs) -> schema.StateBond:
    args = {
        "status": BondStatus.PRESENT_WITHOUT_INFO.value,
        "state_code": _STATE_CODE,
        "bond_type": BondType.CASH.value,
    }
    args.update(kwargs)
    return schema.StateBond(person=person, **args)
def generate_test_bond(person_id) -> state_schema.StateBond:
    instance = state_schema.StateBond(
        bond_id=9999,
        person_id=person_id,
        status=BondStatus.PENDING.value,
        status_raw_text='PENDING',
        bond_type=BondType.CASH.value,
        bond_type_raw_text='CASH',
        date_paid=None,
        state_code='us_ca',
        county_code='us_ca_san_francisco',
        amount_dollars=1000,
        bond_agent=None,
    )

    return instance