HomeSoftware Heritage

hypothesis: split hypothesis strategies as a dict + entity instance

Description

hypothesis: split hypothesis strategies as a dict + entity instance

for each entity model Model, provide a models_d strategy that
produces dicts suitable for using as argument for the Model.from_dict
factory method, and reimplement the models generator using this
former hypothesis generator.

This is needed to help writing low level tests for model entities.

Details

Provenance
douarddaAuthored on Mar 23 2020, 10:32 AM
douarddaPushed on Apr 1 2020, 2:54 PM
Parents
rDMOD10b069921e74: model: improve a bit the TimestampWithTimezone model
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11548
Build 17505: test-and-buildJenkins console · Jenkins