Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/tests/test_origin_revision_layer.py
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | for row in synth_org[2:]: | ||||
src=org["O_R"][-1]["dst"], | src=org["O_R"][-1]["dst"], | ||||
dst=hash_to_bytes(row["sha1"]), | dst=hash_to_bytes(row["sha1"]), | ||||
name=row["revname"], | name=row["revname"], | ||||
) | ) | ||||
) | ) | ||||
return org | return org | ||||
@pytest.mark.origin_layer | |||||
@pytest.mark.parametrize( | @pytest.mark.parametrize( | ||||
"repo, visit", | "repo, visit", | ||||
(("with-merges", "visits-01"),), | (("with-merges", "visits-01"),), | ||||
) | ) | ||||
def test_origin_revision_layer( | def test_origin_revision_layer( | ||||
provenance: ProvenanceInterface, | provenance: ProvenanceInterface, | ||||
archive: ArchiveInterface, | archive: ArchiveInterface, | ||||
repo: str, | repo: str, | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |