swh.objstorage.pytest_plugin module#

swh.objstorage.pytest_plugin.swh_objstorage_config()[source]#

Fixture that returns a dictionary containing the configuration required to instantiate an object storage.

Unless the fixture gets overridden, the configuration for creating an object storage in memory is returned.

See swh.objstorage.factory.get_objstorage() for more details.

swh.objstorage.pytest_plugin.swh_objstorage(swh_objstorage_config)[source]#

Fixture that instantiates an object storage based on the configuration returned by the swh_objstorage_config fixture.