Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/tests/test_loader.py
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | rev1 = Revision( | ||||
committer_date=date, | committer_date=date, | ||||
directory=dir1_swhid.object_id, | directory=dir1_swhid.object_id, | ||||
type=RevisionType.TAR, | type=RevisionType.TAR, | ||||
synthetic=True, | synthetic=True, | ||||
) | ) | ||||
rel1 = Release( | rel1 = Release( | ||||
name=b"v1.0", | name=b"v1.0", | ||||
message=b"blah", | message=b"blah\n", | ||||
author=person, | author=person, | ||||
date=date, | date=date, | ||||
target=dir1_swhid.object_id, | target=dir1_swhid.object_id, | ||||
target_type=ModelObjectType.DIRECTORY, | target_type=ModelObjectType.DIRECTORY, | ||||
synthetic=True, | synthetic=True, | ||||
) | ) | ||||
rev1_swhid = rev1.swhid() | rev1_swhid = rev1.swhid() | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |