Page MenuHomeSoftware Heritage

indexer.tests: Use module's `get_<storage-backend>` to instantiate backend
ClosedPublic

Authored by ardumont on Jan 31 2020, 9:35 AM.

Details

Summary

Instead of directly import the storage backend whose name could change.

This fixes the ci build [1]

[1] https://jenkins.softwareheritage.org/job/DCIDX/job/tests/817/console

Test Plan

tox

Unsure of the result yet as another error is entangled within.
Meaning the build will fail as long as the other error is not fixed.

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

Improve initialization and docstring

ardumont retitled this revision from conftest: Use module's `get_<storage-backend>` to instantiate backend to indexer.tests: Use module's `get_<storage-backend>` to instantiate backend.Jan 31 2020, 9:45 AM
This revision is now accepted and ready to land.Jan 31 2020, 11:27 AM
This revision was landed with ongoing or failed builds.Jan 31 2020, 12:02 PM
This revision was automatically updated to reflect the committed changes.