Page MenuHomeSoftware Heritage

tests: add low level tests for the Timestamp model entity

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

Diff Detail

rDMOD Data Model
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Thu, Mar 12, 4:09 PM
vlorentz accepted this revision.Thu, Mar 12, 4:12 PM
This revision is now accepted and ready to land.Thu, Mar 12, 4:12 PM
ardumont accepted this revision.Tue, Mar 31, 9:56 AM

Build is green

Patch application report for D2823 (id=10441)

Could not rebase; Attempt merge onto e9a4c7519e...

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

    tests: add low level tests for the Timestamp model entity

commit 85ca7d7848008951f2e26c55c1c72ed9fa92cefb
Author: David Douard <>
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 for more details.