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
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 10121
Build 15009: tox-on-jenkinsJenkins
Build 15008: arc lint + arc unit

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