Changeset View
Changeset View
Standalone View
Standalone View
swh/journal/tests/conftest.py
Show All 29 Lines | CONTENTS = [ | ||||
'34973274ccef6ab4dfaaf86599792fa9c3fe4689'), | '34973274ccef6ab4dfaaf86599792fa9c3fe4689'), | ||||
'sha1_git': b'foo', | 'sha1_git': b'foo', | ||||
'blake2s256': b'bar', | 'blake2s256': b'bar', | ||||
'sha256': b'baz', | 'sha256': b'baz', | ||||
'status': 'visible', | 'status': 'visible', | ||||
}, | }, | ||||
] | ] | ||||
COMMITTER = [ | COMMITTERS = [ | ||||
{ | { | ||||
'id': 1, | 'id': 1, | ||||
'fullname': b'foo', | 'fullname': b'foo', | ||||
}, | }, | ||||
{ | { | ||||
'id': 2, | 'id': 2, | ||||
'fullname': b'bar', | 'fullname': b'bar', | ||||
} | } | ||||
] | ] | ||||
REVISIONS = [ | DATES = [ | ||||
{ | { | ||||
'id': hash_to_bytes('7026b7c1a2af56521e951c01ed20f255fa054238'), | |||||
'message': b'hello', | |||||
'date': { | |||||
'timestamp': { | 'timestamp': { | ||||
'seconds': 1234567891, | 'seconds': 1234567891, | ||||
'microseconds': 0, | 'microseconds': 0, | ||||
}, | }, | ||||
'offset': 120, | 'offset': 120, | ||||
'negative_utc': None, | 'negative_utc': None, | ||||
}, | }, | ||||
'committer': COMMITTER[0], | |||||
'author': COMMITTER[0], | |||||
'committer_date': None, | |||||
}, | |||||
{ | { | ||||
'id': hash_to_bytes('368a48fe15b7db2383775f97c6b247011b3f14f4'), | |||||
'message': b'hello again', | |||||
'date': { | |||||
'timestamp': { | 'timestamp': { | ||||
'seconds': 1234567892, | 'seconds': 1234567892, | ||||
'microseconds': 0, | 'microseconds': 0, | ||||
}, | }, | ||||
'offset': 120, | 'offset': 120, | ||||
'negative_utc': None, | 'negative_utc': None, | ||||
} | |||||
] | |||||
REVISIONS = [ | |||||
{ | |||||
'id': hash_to_bytes('7026b7c1a2af56521e951c01ed20f255fa054238'), | |||||
'message': b'hello', | |||||
'date': DATES[0], | |||||
'committer': COMMITTERS[0], | |||||
'author': COMMITTERS[0], | |||||
'committer_date': DATES[0], | |||||
}, | }, | ||||
'committer': COMMITTER[1], | { | ||||
'author': COMMITTER[1], | 'id': hash_to_bytes('368a48fe15b7db2383775f97c6b247011b3f14f4'), | ||||
'committer_date': None, | 'message': b'hello again', | ||||
'date': DATES[1], | |||||
'committer': COMMITTERS[1], | |||||
'author': COMMITTERS[1], | |||||
'committer_date': DATES[1], | |||||
}, | }, | ||||
] | ] | ||||
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': COMMITTER[0], | 'author': COMMITTERS[0], | ||||
}, | }, | ||||
] | ] | ||||
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 |