HomeSoftware Heritage

Improve tests coverage by adding missing model types in journal_data

Description

Improve tests coverage by adding missing model types in journal_data

Improve the coverage of the test set provided in journal_data, namely
add directories, snapshots and skipped contents.

This requires to adapt a bit the function assert_all_objects_consumed() from
pytest_plugin, because we want to be able to handle anonymizable objects
specifically. So for now, simply add an 'exclude' argument.

It also needs the kafka_to_value serializer function to ensure tuples are
used instead of lists.

Details

Provenance
douarddaAuthored on May 29 2020, 2:51 PM
douarddaPushed on Jun 3 2020, 1:52 PM
Differential Revision
D3207: Improve tests coverage by adding missing model types in journal_data
Parents
rDJNL5c27d5161eb9: Adapt test data to swh.model 0.3
Branches
Unknown
Tags
Unknown
References
tag: v0.2.0
Build Status
Buildable 12601
Build 19144: test-and-buildJenkins console · Jenkins