Page MenuHomeSoftware Heritage

tests: make test_cli.py compatible with scheduler 0.0.56
ClosedPublic

Authored by douardda on Wed, May 15, 5:34 PM.

Diff Detail

Repository
rDCIDX Object indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Wed, May 15, 5:34 PM
vlorentz requested changes to this revision.Thu, May 16, 3:57 PM
This revision now requires changes to proceed.Thu, May 16, 3:57 PM

wat?

Pay attention to the '.' instead of '_' in the mocked paths.

84c0bd724b5de01d34ed0066ca386d63ab181a95 moved the swh/scheduler/cli_utils.py file in swh/scheduler/cli/utils.py so the mocking must be adapted accordingly.

Keeping both versions ensure tests will pass against scheduler 'older' (<0.0.56) versions also.

ardumont accepted this revision.Thu, May 16, 4:19 PM
vlorentz accepted this revision.Fri, May 17, 10:26 AM
This revision is now accepted and ready to land.Fri, May 17, 10:26 AM
This revision was automatically updated to reflect the committed changes.