https://github.com/SoftwareHeritage/swh-model
Revision f51327138fa14c5b285ffad2b2844afbb48e8462 authored by David Douard on 23 March 2020, 09:32:39 UTC, committed by David Douard on 01 April 2020, 09:07:24 UTC
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.
1 parent 10b0699
History
Tip revision: f51327138fa14c5b285ffad2b2844afbb48e8462 authored by David Douard on 23 March 2020, 09:32:39 UTC
hypothesis: split hypothesis strategies as a dict + entity instance
Tip revision: f513271
File Mode Size
bin
docs
swh
.gitignore -rw-r--r-- 137 bytes
.pre-commit-config.yaml -rw-r--r-- 1.1 KB
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 31 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 157 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 24 bytes
README.md -rw-r--r-- 598 bytes
mypy.ini -rw-r--r-- 520 bytes
pytest.ini -rw-r--r-- 58 bytes
requirements-cli.txt -rw-r--r-- 23 bytes
requirements-test.txt -rw-r--r-- 26 bytes
requirements.txt -rw-r--r-- 291 bytes
setup.py -rwxr-xr-x 2.4 KB
tox.ini -rw-r--r-- 375 bytes

README.md

back to top