Page MenuHomeSoftware Heritage

tests: Split RepoFixtures off TestRevisionCooker
ClosedPublic

Authored by vlorentz on Thu, Jul 15, 7:48 PM.

Details

Summary

So the 'load' and 'check' parts of the tests can be reused by future
snapshot tests.

Depends on D5997.

Diff Detail

Repository
rDVAU Software Heritage Vault
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5998 (id=21648)

Could not rebase; Attempt merge onto 5951a5c63b...

Updating 5951a5c..70fc50f
Fast-forward
 swh/vault/tests/test_cookers.py | 109 +++++++++++++++++++++++++++-------------
 1 file changed, 75 insertions(+), 34 deletions(-)
Changes applied before test
commit 70fc50f40b8bc13b022f96be0027e89175773fd7
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Jul 15 17:20:44 2021 +0200

    tests: Split RepoFixtures off TestRevisionCooker
    
    So the 'load' and 'check' parts of the tests can be reused by future
    snapshot tests.

commit a1f42284c683ec1d0ee169cda67f507529822473
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Jul 15 16:58:55 2021 +0200

    tests: Make TestRevisionCooker more modular
    
    So its 'load' and 'check' parts can be reused for testing snapshots

See https://jenkins.softwareheritage.org/job/DVAU/job/tests-on-diff/134/ for more details.

This revision is now accepted and ready to land.Mon, Jul 19, 10:45 AM