Page MenuHomeSoftware Heritage

tests: make test_cli.py compatible with scheduler 0.0.56
ClosedPublic

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

Diff Detail

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

Event Timeline

This revision now requires changes to proceed.May 16 2019, 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.

This revision is now accepted and ready to land.May 17 2019, 10:26 AM
This revision was automatically updated to reflect the committed changes.