Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/storage_data.py
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | |||||
origin2 = { | origin2 = { | ||||
"url": "file:///dev/zero", | "url": "file:///dev/zero", | ||||
} | } | ||||
origins = (origin, origin2) | origins = (origin, origin2) | ||||
metadata_authority = MetadataAuthority( | metadata_authority = MetadataAuthority( | ||||
type=MetadataAuthorityType.DEPOSIT, | type=MetadataAuthorityType.DEPOSIT_CLIENT, | ||||
url="http://hal.inria.example.com/", | url="http://hal.inria.example.com/", | ||||
metadata={"location": "France"}, | metadata={"location": "France"}, | ||||
) | ) | ||||
metadata_authority2 = MetadataAuthority( | metadata_authority2 = MetadataAuthority( | ||||
type=MetadataAuthorityType.REGISTRY, | type=MetadataAuthorityType.REGISTRY, | ||||
url="http://wikidata.example.com/", | url="http://wikidata.example.com/", | ||||
metadata={}, | metadata={}, | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |