Page MenuHomeSoftware Heritage

pytest_plugin: Deal with the case when ctime is dropped
ClosedPublic

Authored by ardumont on Aug 7 2020, 10:28 AM.

Details

Summary

This fixes the future build failure following the swh.model tag 0.6.6
({Content, SkippedContent}.to_dict drops ctime key when that value is None)

Test Plan

tox

Diff Detail

Repository
rDJNL Journal infrastructure
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D3739 (id=13153)

Rebasing onto 081d60ae53...

Current branch diff-target is up to date.
Changes applied before test
commit 4512f61560039ad920d19df511f80143bd0d9f39
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Aug 7 10:26:41 2020 +0200

    pytest_plugin: Simplify assertions

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

ardumont retitled this revision from pytest_plugin: Simplify assertions to pytest_plugin: Deal with the case when ctime is dropped.Aug 7 2020, 10:41 AM

Build is green

Patch application report for D3739 (id=13154)

Rebasing onto 081d60ae53...

Current branch diff-target is up to date.
Changes applied before test
commit ce6cb80ee18fc8134f7077f3a2fcdfda220480e2
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Aug 7 10:26:41 2020 +0200

    pytest_plugin: Deal with the case when ctime is dropped
    
    Following swh.model 0.6.6 bump

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

This revision was not accepted when it landed; it landed in state Needs Review.Aug 7 2020, 10:57 AM
This revision was automatically updated to reflect the committed changes.