Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/migrate_extrinsic_metadata/test_debian.py
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | def test_debian_origins_from_row__no_result(): | ||||
revision = Revision( | revision = Revision( | ||||
id=revision_id, | id=revision_id, | ||||
message=b"foo", | message=b"foo", | ||||
author=Person.from_fullname(b"foo"), | author=Person.from_fullname(b"foo"), | ||||
committer=Person.from_fullname(b"foo"), | committer=Person.from_fullname(b"foo"), | ||||
date=TimestampWithTimezone( | date=TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1580076204, microseconds=0), | timestamp=Timestamp(seconds=1580076204, microseconds=0), | ||||
offset=60, | offset_bytes=b"+0100", | ||||
negative_utc=False, | |||||
), | ), | ||||
committer_date=TimestampWithTimezone( | committer_date=TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1580076204, microseconds=0), | timestamp=Timestamp(seconds=1580076204, microseconds=0), | ||||
offset=60, | offset_bytes=b"+0100", | ||||
negative_utc=False, | |||||
), | ), | ||||
type=RevisionType.DSC, | type=RevisionType.DSC, | ||||
directory=b"\xd5\x9a\x1f\x9c\x80\x9d\x8c}19P\xf6\xc8\xa2\x0f^%H\xcd\xdb", | directory=b"\xd5\x9a\x1f\x9c\x80\x9d\x8c}19P\xf6\xc8\xa2\x0f^%H\xcd\xdb", | ||||
synthetic=True, | synthetic=True, | ||||
metadata=None, | metadata=None, | ||||
parents=(), | parents=(), | ||||
extra_headers=(), | extra_headers=(), | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | def test_debian_origins_from_row__check_revisions(): | ||||
revision = Revision( | revision = Revision( | ||||
id=revision_id, | id=revision_id, | ||||
message=b"foo", | message=b"foo", | ||||
author=Person.from_fullname(b"foo"), | author=Person.from_fullname(b"foo"), | ||||
committer=Person.from_fullname(b"foo"), | committer=Person.from_fullname(b"foo"), | ||||
date=TimestampWithTimezone( | date=TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1580076204, microseconds=0), | timestamp=Timestamp(seconds=1580076204, microseconds=0), | ||||
offset=60, | offset_bytes=b"+0100", | ||||
negative_utc=False, | |||||
), | ), | ||||
committer_date=TimestampWithTimezone( | committer_date=TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1580076204, microseconds=0), | timestamp=Timestamp(seconds=1580076204, microseconds=0), | ||||
offset=60, | offset_bytes=b"+0100", | ||||
negative_utc=False, | |||||
), | ), | ||||
type=RevisionType.DSC, | type=RevisionType.DSC, | ||||
directory=b"\xd5\x9a\x1f\x9c\x80\x9d\x8c}19P\xf6\xc8\xa2\x0f^%H\xcd\xdb", | directory=b"\xd5\x9a\x1f\x9c\x80\x9d\x8c}19P\xf6\xc8\xa2\x0f^%H\xcd\xdb", | ||||
synthetic=True, | synthetic=True, | ||||
metadata=None, | metadata=None, | ||||
parents=(b"parent " * 2,), | parents=(b"parent " * 2,), | ||||
extra_headers=(), | extra_headers=(), | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |