Page MenuHomeSoftware Heritage

test_replay: Migrate to latest content_get_metadata api change
ClosedPublic

Authored by ardumont on Tue, Jan 14, 4:47 PM.

Details

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

ardumont created this revision.Tue, Jan 14, 4:47 PM
ardumont edited the summary of this revision. (Show Details)Tue, Jan 14, 5:34 PM
vlorentz accepted this revision.Wed, Jan 15, 2:02 PM
vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/journal/tests/test_replay.py
112
assert contents == {cont['sha1']: cont for cont in input_contents}

will also check there are no extra data (it's unlikely to happen, but it doesn't hurt to check it)

This revision is now accepted and ready to land.Wed, Jan 15, 2:02 PM
ardumont updated this revision to Diff 9019.Wed, Jan 15, 2:57 PM

Improve assertion as per review suggestion

swh/journal/tests/test_replay.py
112
assert contents == {cont['sha1']: [cont] for cont in input_contents}

will adapt