Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/storage/test_storage.py
Show First 20 Lines • Show All 1,578 Lines • ▼ Show 20 Lines | class TestIndexerStorageOriginIntrinsicMetadata: | ||||
) -> None: | ) -> None: | ||||
storage, data = swh_indexer_storage_with_data | storage, data = swh_indexer_storage_with_data | ||||
self._fill_origin_intrinsic_metadata(swh_indexer_storage_with_data) | self._fill_origin_intrinsic_metadata(swh_indexer_storage_with_data) | ||||
result = storage.origin_intrinsic_metadata_stats() | result = storage.origin_intrinsic_metadata_stats() | ||||
assert result == { | assert result == { | ||||
"per_mapping": { | "per_mapping": { | ||||
"cff": 0, | "cff": 0, | ||||
"description": 0, | |||||
"gemspec": 1, | "gemspec": 1, | ||||
"npm": 2, | "npm": 2, | ||||
"pkg-info": 1, | "pkg-info": 1, | ||||
"codemeta": 0, | "codemeta": 0, | ||||
"maven": 0, | "maven": 0, | ||||
}, | }, | ||||
"total": 3, | "total": 3, | ||||
"non_empty": 2, | "non_empty": 2, | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |