Page MenuHomeSoftware Heritage

tests: add low level tests for the Timestamp model entity
ClosedPublic

Authored by douardda on Mar 12 2020, 4:09 PM.

Diff Detail

Event Timeline

This revision is now accepted and ready to land.Mar 12 2020, 4:12 PM

Build is green

Patch application report for D2823 (id=10441)

Could not rebase; Attempt merge onto e9a4c7519e...

Updating e9a4c75..ac9d4c8
Fast-forward
 mypy.ini                      |   4 +-
 requirements.txt              |   1 +
 swh/model/model.py            | 319 +++++++++++++++++++++++++++++-------------
 swh/model/tests/test_model.py |  29 ++++
 4 files changed, 258 insertions(+), 95 deletions(-)
Changes applied before test
commit ac9d4c84a115c6c8d3aea04ed55635e8e743ea1d
Author: David Douard <david.douard@sdfa3.org>
Date:   Thu Mar 12 14:27:23 2020 +0100

    tests: add low level tests for the Timestamp model entity

commit 85ca7d7848008951f2e26c55c1c72ed9fa92cefb
Author: David Douard <david.douard@sdfa3.org>
Date:   Fri Mar 20 12:59:56 2020 +0100

    model: use attrs_static to enforce type validation of model objects
    
    This ensures all instanciated model entities have valid types for attributes.
    
    Related to T2308.

See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/19/ for more details.