HomeSoftware Heritage

tests: Remove the SWHTag mock, use dulwich.objects.Tag instead.

Description

tests: Remove the SWHTag mock, use dulwich.objects.Tag instead.

This mock was clunky because it didn't actually behave much like
dulwich's Tag.

Additionally, a future commit will need to access the as_raw_chunks()
method of ShaFile objects, so SWHTag isn't suitable anymore as it
would need to diverge even more by implementing its own serialization.

Details

Provenance
vlorentzAuthored on Dec 20 2021, 12:38 PM
vlorentzPushed on Dec 20 2021, 4:09 PM
Differential Revision
D6865: tests: Remove the SWHTag mock, use dulwich.objects.Tag instead.
Parents
rDLDG715fbe212d90: Pin mypy and drop type annotations which makes mypy unhappy
Branches
Unknown
Tags
Unknown
Build Status
Buildable 25744
Build 40238: test-and-buildJenkins console · Jenkins