to_api now returns the derived self_renewal_available field, so reusing a to_api'd patron as the POST body for /api/v1/patrons fails with 500 (the value has no matching DB column). Adjacent subtests already delete this read-only field before POSTing; do the same in the EmailPatronRegistrations subtest. Test plan: 1. prove t/db_dependent/api/v1/patrons.t — all tests pass. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> |
||
|---|---|---|
| .. | ||
| v1 | ||