Page MenuHomeSoftware Heritage

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

Authored by ardumont on Fri, Jan 31, 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

ardumont created this revision.Fri, Jan 31, 9:35 AM
ardumont updated this revision to Diff 9328.EditedFri, Jan 31, 9:41 AM

Improve initialization and docstring

ardumont edited the test plan for this revision. (Show Details)Fri, Jan 31, 9:42 AM
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.Fri, Jan 31, 9:45 AM
vlorentz accepted this revision.Fri, Jan 31, 11:27 AM
This revision is now accepted and ready to land.Fri, Jan 31, 11:27 AM
This revision was landed with ongoing or failed builds.Fri, Jan 31, 12:02 PM
This revision was automatically updated to reflect the committed changes.