HomeSoftware Heritage

Use json_dumps/loads in test_serializers.py

Description

Use json_dumps/loads in test_serializers.py

instead of json.dumps(..., cls=SWHJSONEncoder) and so.

This simplify a bit the code and make sure the json_dumps/loads
functions are actually tested.

Details

Provenance
douarddaAuthored on Dec 11 2020, 9:27 AM
douarddaPushed on Dec 11 2020, 10:09 AM
Differential Revision
D4690: Encode datetime as Timestamp in msgpack
Parents
rDCORE6492e6173e57: Get rid of the arrow datetime format in swh.core.api.serializers
Branches
Unknown
Tags
Unknown
Build Status
Buildable 17881
Build 27627: test-and-buildJenkins console · Jenkins