HomeSoftware Heritage

tests: Simplify origin comparison and improve pytest diff on failure

Description

tests: Simplify origin comparison and improve pytest diff on failure

By using a single equality instead of checking len() then zip()
to check one by one, pytest can find the common/missing elements
and print them nicely when the two lists are unequal.

Details

Provenance
vlorentzAuthored on Aug 24 2022, 5:21 PM
vlorentzPushed on Aug 25 2022, 10:01 AM
Differential Revision
D8307: tests: Simplify origin comparison and improve pytest diff on failure
Parents
rDLS4b511b4181da: arch: Use lazy interpolation in logging statements
Branches
Unknown
Tags
Unknown
Build Status
Buildable 31053
Build 48583: test-and-buildJenkins console · Jenkins