Skip to content

Do not mutate swh.core.api.serializers.ENCODERS or DECODERS

The previous implementation would always append extra_encoders to the main ENCODERS list. Refactor encoder and decoder extensions both with a common getter which doesn't mutate the global variable.

Test Plan

Added a tox test to check for the mutation


Migrated from D4572 (view on Phabricator)

Merge request reports