Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/utils.py
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | SNAPSHOTS = [ | ||||
'target': hash_to_bytes( | 'target': hash_to_bytes( | ||||
'8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f'), | '8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f'), | ||||
'target_type': 'revision'}}}, | 'target_type': 'revision'}}}, | ||||
] | ] | ||||
REVISIONS = [{ | REVISIONS = [{ | ||||
'id': hash_to_bytes('8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f'), | 'id': hash_to_bytes('8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f'), | ||||
'message': 'Improve search functionality', | 'message': b'Improve search functionality', | ||||
'author': { | 'author': { | ||||
'name': b'Andrew Nesbitt', | 'name': b'Andrew Nesbitt', | ||||
'fullname': b'Andrew Nesbitt <andrewnez@gmail.com>', | 'fullname': b'Andrew Nesbitt <andrewnez@gmail.com>', | ||||
'email': b'andrewnez@gmail.com' | 'email': b'andrewnez@gmail.com' | ||||
}, | }, | ||||
'committer': { | 'committer': { | ||||
'name': b'Andrew Nesbitt', | 'name': b'Andrew Nesbitt', | ||||
'fullname': b'Andrew Nesbitt <andrewnez@gmail.com>', | 'fullname': b'Andrew Nesbitt <andrewnez@gmail.com>', | ||||
'email': b'andrewnez@gmail.com' | 'email': b'andrewnez@gmail.com' | ||||
}, | }, | ||||
'committer_date': { | 'committer_date': { | ||||
'negative_utc': None, | 'negative_utc': False, | ||||
'offset': 120, | 'offset': 120, | ||||
'timestamp': { | 'timestamp': { | ||||
'microseconds': 0, | 'microseconds': 0, | ||||
'seconds': 1380883849 | 'seconds': 1380883849, | ||||
} | } | ||||
}, | }, | ||||
'type': 'git', | 'type': 'git', | ||||
'synthetic': False, | 'synthetic': False, | ||||
'date': { | 'date': { | ||||
'negative_utc': False, | 'negative_utc': False, | ||||
'timestamp': { | 'timestamp': { | ||||
'seconds': 1487596456, | 'seconds': 1487596456, | ||||
'microseconds': 0 | 'microseconds': 0, | ||||
}, | }, | ||||
'offset': 0 | 'offset': 0 | ||||
}, | }, | ||||
'directory': b'10' | 'directory': b'10' | ||||
}] | }] | ||||
DIRECTORY_ID = b'10' | DIRECTORY_ID = b'10' | ||||
▲ Show 20 Lines • Show All 570 Lines • Show Last 20 Lines |