Page MenuHomeSoftware Heritage

Make ArchiveStorage() accept a StorageInterface object as argument
ClosedPublic

Authored by douardda on Feb 17 2021, 5:37 PM.

Details

Summary

instead of the parameters to pass to the get_storage() factory function.
This will help for writing tests, since the storage is usually
instanciated by a pytest fixture.

Depends on D5098.

Diff Detail

Repository
rDPROV Provenance database
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.
aeviso added a subscriber: aeviso.
aeviso added inline comments.
swh/provenance/__init__.py
19

Not sure how swh db works but should we use it to handle this connection as well?

This revision is now accepted and ready to land.Feb 18 2021, 1:56 PM