Changeset View
Changeset View
Standalone View
Standalone View
swh/model/tests/swh_model_data.py
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
COMMITTERS = [ | COMMITTERS = [ | ||||
Person(fullname=b"foo", name=b"foo", email=b""), | Person(fullname=b"foo", name=b"foo", email=b""), | ||||
Person(fullname=b"bar", name=b"bar", email=b""), | Person(fullname=b"bar", name=b"bar", email=b""), | ||||
] | ] | ||||
DATES = [ | DATES = [ | ||||
TimestampWithTimezone( | TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1234567891, microseconds=0,), | timestamp=Timestamp(seconds=1234567891, microseconds=0,), offset_bytes=b"+0200", | ||||
offset=120, | |||||
negative_utc=False, | |||||
), | ), | ||||
TimestampWithTimezone( | TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1234567892, microseconds=0,), | timestamp=Timestamp(seconds=1234567892, microseconds=0,), offset_bytes=b"+0200", | ||||
offset=120, | |||||
negative_utc=False, | |||||
), | ), | ||||
] | ] | ||||
REVISIONS = [ | REVISIONS = [ | ||||
Revision( | Revision( | ||||
id=hash_to_bytes("66c7c1cd9673275037140f2abff7b7b11fc9439c"), | id=hash_to_bytes("66c7c1cd9673275037140f2abff7b7b11fc9439c"), | ||||
message=b"hello", | message=b"hello", | ||||
date=DATES[0], | date=DATES[0], | ||||
Show All 37 Lines | |||||
] | ] | ||||
RELEASES = [ | RELEASES = [ | ||||
Release( | Release( | ||||
id=hash_to_bytes("8059dc4e17fcd0e51ca3bcd6b80f4577d281fd08"), | id=hash_to_bytes("8059dc4e17fcd0e51ca3bcd6b80f4577d281fd08"), | ||||
name=b"v0.0.1", | name=b"v0.0.1", | ||||
date=TimestampWithTimezone( | date=TimestampWithTimezone( | ||||
timestamp=Timestamp(seconds=1234567890, microseconds=0,), | timestamp=Timestamp(seconds=1234567890, microseconds=0,), | ||||
offset=120, | offset_bytes=b"+0200", | ||||
negative_utc=False, | |||||
), | ), | ||||
author=COMMITTERS[0], | author=COMMITTERS[0], | ||||
target_type=ObjectType.REVISION, | target_type=ObjectType.REVISION, | ||||
target=b"\x04" * 20, | target=b"\x04" * 20, | ||||
message=b"foo", | message=b"foo", | ||||
synthetic=False, | synthetic=False, | ||||
), | ), | ||||
Release( | Release( | ||||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |