Details
- Reviewers
vlorentz - Group Reviewers
Reviewers - Commits
- rDMODb064a0bb6eb2: Add a test data generator module
Diff Detail
- Repository
- rDMOD Data model
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DMOD/job/tox/144/
See console output for more information: https://jenkins.softwareheritage.org/job/DMOD/job/tox/144/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DMOD/job/tox/146/
See console output for more information: https://jenkins.softwareheritage.org/job/DMOD/job/tox/146/console
Build is green
See https://jenkins.softwareheritage.org/job/DMOD/job/tox/147/ for more details.
swh/model/tests/generate_testdata.py | ||
---|---|---|
21 | IMHO this is something to test specifically, not that useful for 'general-purpose' generated datasets. If we want/need to "check that negative and big values are supported", we need specifically crafted tests, not rely on random being nice with us. Also, notice that currently hypothesis_stategies.contents() do not generate ctime field at all. |
swh/model/tests/test_generate_testdata.py | ||
---|---|---|
33–35 | makes sense, thx |
Build is green
See https://jenkins.softwareheritage.org/job/DMOD/job/tox/148/ for more details.
swh/model/tests/generate_testdata.py | ||
---|---|---|
21 | The same could be said of using different PROTOCOLS, having an IRI in DOMAINS, having # and ? in PATHS, having different CONTENT_STATUSes, etc. If it's cheap to explore a large range of values, why not do it? |
requirements.txt | ||
---|---|---|
8 ↗ | (On Diff #7478) | should be in requirements-tests.txt |
Oh and also, it would be nice of these gen_ functions to return model objects instead of dicts (as we want to get rid of these dicts as much as possible)
Maybe, not sure we really want this (right now at least).
swh/model/tests/generate_testdata.py | ||
---|---|---|
21 | possibly but I want to be able to fix swh.storage (!) |
Build is green
See https://jenkins.softwareheritage.org/job/DMOD/job/tox/149/ for more details.