self = <swh.storage.tests.test_api_client.TestStorage object at 0x7f70dda17978>
swh_storage = <RemoteStorage url=mock://example.com/>
sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria....11', length=7, status='visible', data=b'424242\n', ctime=datetime.datetime(2019, 12, 1, 0, 0, tzinfo=tzlocal()))], ...}
def test_revision_shortlog(self, swh_storage, sample_data_model):
revision3, revision4 = sample_data_model["revision"][2:4]
# data.revision4 -is-child-of-> data.revision3
swh_storage.revision_add([revision3, revision4])
# when
actual_results = list(swh_storage.revision_shortlog([revision4.id]))
assert len(actual_results) == 2 # rev4 -child-> rev3
> assert list(actual_results[0]) == [revision4.id, revision4.parents]
E AssertionError: assert [b'\x88\xcdQ&...0\x1bY\x1dF']] == [b'\x88\xcdQ&...\x1bY\x1dF',)]
E At index 1 diff: [b',\xbd{\xb2,e;\xbb#\xa2\x96W\x85*P\xa0\x1bY\x1dF'] != (b',\xbd{\xb2,e;\xbb#\xa2\x96W\x85*P\xa0\x1bY\x1dF',)
E Full diff:
E [
E b'\x88\xcdQ&\xfc\x95\x8e\xd7\x00\x89\xd54\x04A\xa1\xc2G{\xcc ',
E - (b',\xbd{\xb2,e;\xbb#\xa2\x96W\x85*P\xa0\x1bY\x1dF',),
E ? ^ --
E + [b',\xbd{\xb2,e;\xbb#\xa2\x96W\x85*P\xa0\x1bY\x1dF'],...
E
E ...Full output truncated (3 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1010: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 21 2020, 10:35 AM