ral-facilities / inventory-management-system-api

Apache License 2.0
1 stars 0 forks source link

Unify NonLeafCatalogueCategoryError and InvalidActionError in CC responses #381

Open joelvdavies opened 2 months ago

joelvdavies commented 2 months ago

See note on https://github.com/ral-facilities/inventory-management-system-api/pull/379. We currently raise NonLeafCatalogueCategoryError as tested in test_create_with_non_leaf_catalogue_category. But for the catalogue category property endpoints we instead use an InvalidActionError. These should be unified.