Page MenuHomeSoftware Heritage

test_replay: Migrate to latest content_get_metadata api change
ClosedPublic

Authored by ardumont on Jan 14 2020, 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

vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/journal/tests/test_replay.py
111
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.Jan 15 2020, 2:02 PM

Improve assertion as per review suggestion

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

will adapt