Changeset View
Changeset View
Standalone View
Standalone View
swh/journal/tests/conftest.py
Show All 31 Lines | CONTENTS = [ | ||||
'blake2s256': b'bar', | 'blake2s256': b'bar', | ||||
'sha256': b'baz', | 'sha256': b'baz', | ||||
'status': 'visible', | 'status': 'visible', | ||||
}, | }, | ||||
] | ] | ||||
COMMITTERS = [ | COMMITTERS = [ | ||||
{ | { | ||||
'id': 1, | |||||
'fullname': b'foo', | 'fullname': b'foo', | ||||
'name': b'foo', | |||||
'email': b'', | |||||
}, | }, | ||||
{ | { | ||||
'id': 2, | |||||
'fullname': b'bar', | 'fullname': b'bar', | ||||
'name': b'bar', | |||||
'email': b'', | |||||
} | } | ||||
] | ] | ||||
DATES = [ | DATES = [ | ||||
{ | { | ||||
'timestamp': { | 'timestamp': { | ||||
'seconds': 1234567891, | 'seconds': 1234567891, | ||||
'microseconds': 0, | 'microseconds': 0, | ||||
Show All 14 Lines | |||||
REVISIONS = [ | REVISIONS = [ | ||||
{ | { | ||||
'id': hash_to_bytes('7026b7c1a2af56521e951c01ed20f255fa054238'), | 'id': hash_to_bytes('7026b7c1a2af56521e951c01ed20f255fa054238'), | ||||
'message': b'hello', | 'message': b'hello', | ||||
'date': DATES[0], | 'date': DATES[0], | ||||
'committer': COMMITTERS[0], | 'committer': COMMITTERS[0], | ||||
'author': COMMITTERS[0], | 'author': COMMITTERS[0], | ||||
'committer_date': DATES[0], | 'committer_date': DATES[0], | ||||
'type': 'git', | |||||
'directory': '\x01'*20, | |||||
'synthetic': False, | |||||
'metadata': None, | |||||
'parents': [], | |||||
}, | }, | ||||
{ | { | ||||
'id': hash_to_bytes('368a48fe15b7db2383775f97c6b247011b3f14f4'), | 'id': hash_to_bytes('368a48fe15b7db2383775f97c6b247011b3f14f4'), | ||||
'message': b'hello again', | 'message': b'hello again', | ||||
'date': DATES[1], | 'date': DATES[1], | ||||
'committer': COMMITTERS[1], | 'committer': COMMITTERS[1], | ||||
'author': COMMITTERS[1], | 'author': COMMITTERS[1], | ||||
'committer_date': DATES[1], | 'committer_date': DATES[1], | ||||
'type': 'hg', | |||||
'directory': '\x02'*20, | |||||
'synthetic': False, | |||||
'metadata': None, | |||||
'parents': [], | |||||
}, | }, | ||||
] | ] | ||||
RELEASES = [ | RELEASES = [ | ||||
{ | { | ||||
'id': hash_to_bytes('d81cc0710eb6cf9efd5b920a8453e1e07157b6cd'), | 'id': hash_to_bytes('d81cc0710eb6cf9efd5b920a8453e1e07157b6cd'), | ||||
'name': b'v0.0.1', | 'name': b'v0.0.1', | ||||
'date': { | 'date': { | ||||
'timestamp': { | 'timestamp': { | ||||
'seconds': 1234567890, | 'seconds': 1234567890, | ||||
'microseconds': 0, | 'microseconds': 0, | ||||
}, | }, | ||||
'offset': 120, | 'offset': 120, | ||||
'negative_utc': None, | 'negative_utc': None, | ||||
}, | }, | ||||
'author': COMMITTERS[0], | 'author': COMMITTERS[0], | ||||
'target_type': 'revision', | |||||
'target': b'\x04'*20, | |||||
'message': b'foo', | |||||
'synthetic': False, | |||||
}, | }, | ||||
] | ] | ||||
ORIGINS = [ | ORIGINS = [ | ||||
{ | { | ||||
'url': 'https://somewhere.org/den/fox', | 'url': 'https://somewhere.org/den/fox', | ||||
'type': 'git', | 'type': 'git', | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |