Open odrling opened 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.69%. Comparing base (
7b916ae
) to head (811c57d
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I can't seem to get the tests to pass, id
doesn't seem to be defined on WorkType
and I couldn't understand why.
Ah, the helper is also used to assert work type obtained by other serializers (namely, WorkTypeForWorkSerializer
) that don't include the ID. So either you check for the ID in the appropriate tests, or you tweak the helper to check the ID only when needed (the former would be simpler).
Serialize the ID of work types to be able to use the
/api/library/work-types/{id}
route, otherwise the ID has to be guessed.Found while trying to implement feeding in https://github.com/Japan7/karaberus/issues/38