Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/test_cli.py
Show First 20 Lines • Show All 744 Lines • ▼ Show 20 Lines | ): | ||||
expected_results = [ | expected_results = [ | ||||
OriginExtrinsicMetadataRow( | OriginExtrinsicMetadataRow( | ||||
id=origin.url, | id=origin.url, | ||||
from_remd_id=raw_extrinsic_metadata.id, | from_remd_id=raw_extrinsic_metadata.id, | ||||
tool={"id": 1, **swh_indexer_config["tools"]}, | tool={"id": 1, **swh_indexer_config["tools"]}, | ||||
mappings=["github"], | mappings=["github"], | ||||
metadata={ | metadata={ | ||||
"@context": "https://doi.org/10.5063/schema/codemeta-2.0", | "@context": "https://doi.org/10.5063/schema/codemeta-2.0", | ||||
"id": "http://example.org/", | |||||
"type": "https://forgefed.org/ns#Repository", | "type": "https://forgefed.org/ns#Repository", | ||||
"name": "test software", | "name": "test software", | ||||
}, | }, | ||||
) | ) | ||||
] | ] | ||||
assert sorted(results, key=lambda r: r.id) == expected_results | assert sorted(results, key=lambda r: r.id) == expected_results | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |