Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/tests/test_init.py
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
REVISION = Revision( | REVISION = Revision( | ||||
id=hash_to_bytes("066b1b62dbfa033362092af468bf6cfabec230e7"), | id=hash_to_bytes("066b1b62dbfa033362092af468bf6cfabec230e7"), | ||||
message=b"hello", | message=b"hello", | ||||
author=Person( | author=Person( | ||||
name=b"Nicolas Dandrimont", | name=b"Nicolas Dandrimont", | ||||
email=b"nicolas@example.com", | email=b"nicolas@example.com", | ||||
fullname=b"Nicolas Dandrimont <nicolas@example.com> ", | fullname=b"Nicolas Dandrimont <nicolas@example.com> ", | ||||
), | ), | ||||
date=TimestampWithTimezone.from_datetime( | date=TimestampWithTimezone(Timestamp(1234567890, 0), offset_bytes=b"+0200"), | ||||
datetime.datetime( | |||||
2009, | |||||
2, | |||||
14, | |||||
1, | |||||
31, | |||||
30, | |||||
tzinfo=datetime.timezone(datetime.timedelta(seconds=7200)), | |||||
) | |||||
), | |||||
committer=Person( | committer=Person( | ||||
name=b"St\xc3fano Zacchiroli", | name=b"St\xc3fano Zacchiroli", | ||||
email=b"stefano@example.com", | email=b"stefano@example.com", | ||||
fullname=b"St\xc3fano Zacchiroli <stefano@example.com>", | fullname=b"St\xc3fano Zacchiroli <stefano@example.com>", | ||||
), | ), | ||||
committer_date=TimestampWithTimezone( | committer_date=TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1123456789, microseconds=0), | Timestamp(1123456789, 0), offset_bytes=b"-0000" | ||||
offset=0, | |||||
negative_utc=True, | |||||
), | ), | ||||
parents=(), | parents=(), | ||||
type=RevisionType.GIT, | type=RevisionType.GIT, | ||||
directory=DIRECTORY.id, | directory=DIRECTORY.id, | ||||
metadata={ | metadata={ | ||||
"checksums": {"sha1": "tarball-sha1", "sha256": "tarball-sha256",}, | "checksums": {"sha1": "tarball-sha1", "sha256": "tarball-sha256",}, | ||||
"signed-off-by": "some-dude", | "signed-off-by": "some-dude", | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 394 Lines • Show Last 20 Lines |