HomeSoftware Heritage

test: ensure timestamp in test data are properly typed

Description

test: ensure timestamp in test data are properly typed

according to model declaration, a timestamp must be a dict with 2 keys,
'seconds' and 'microseconds'.

Also add a few more tests for the date_to_db helper function so that the
test coverage of this later remains.

Details

Provenance
douarddaAuthored on Mar 25 2020, 4:08 PM
douarddaPushed on Apr 1 2020, 2:53 PM
Parents
rDSTO377e6a80720f: tests: Prepare tests for origin_visit_update objects
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11541
Build 17498: test-and-buildJenkins console · Jenkins