self = <swh.indexer.tests.storage.test_storage.TestIndexerStorageOriginIntrinsicMetadata object at 0x7fb6dcd25f28>
swh_indexer_storage_with_data = (<RemoteStorage url=mock://example.com/>, {'tools': {'universal-ctags': {'id': 1, 'name': 'universal-ctags', 'version'...configuration_id=8, tool=None, id=b'q\x8b\x0b$\xb5m\x93mh\x12\xdc\xda\xf7b\xb4\xfe\xd8\x94\xab\xab', license=b'MIT')]})
def test_origin_intrinsic_metadata_stats(
self, swh_indexer_storage_with_data: Tuple[IndexerStorageInterface, Any]
) -> None:
storage, data = swh_indexer_storage_with_data
self._fill_origin_intrinsic_metadata(swh_indexer_storage_with_data)
result = storage.origin_intrinsic_metadata_stats()
> assert result == {
"per_mapping": {
"gemspec": 1,
"npm": 2,
"pkg-info": 1,
"codemeta": 0,
"maven": 0,
},
"total": 3,
"non_empty": 2,
}
E AssertionError: assert {'non_empty':...}, 'total': 3} == {'non_empty':...}, 'total': 3}
E Omitting 2 identical items, use -vv to show
E Differing items:
E {'per_mapping': {'cff': 0, 'codemeta': 0, 'gemspec': 1, 'maven': 0, ...}} != {'per_mapping': {'codemeta': 0, 'gemspec': 1, 'maven': 0, 'npm': 2, ...}}
E Full diff:
E {
E 'non_empty': 2,
E - 'per_mapping': {'codemeta': 0,...
E
E ...Full output truncated (11 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/indexer/tests/storage/test_storage.py:1584: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Mar 24 2021, 10:17 AM