swh.storage.pytest_plugin module

swh.storage.pytest_plugin.swh_storage_backend_config(swh_storage_postgresql)[source]

Basic pg storage configuration with no journal collaborator (to avoid pulling optional dependency on clients of this fixture)

swh.storage.pytest_plugin.swh_storage(swh_storage_backend_config)[source]
swh.storage.pytest_plugin.sample_data() → swh.storage.tests.storage_data.StorageData[source]

Pre-defined sample storage object data to manipulate

Returns

StorageData whose attribute keys are data model objects. Either multiple objects: contents, directories, revisions, releases, … or simple ones: content, directory, revision, release, …