self = <swh.storage.tests.test_api_client.TestStorage object at 0x7efecfc17c18>
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_log(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_log([revision4.id]))
assert len(actual_results) == 2 # rev4 -child-> rev3
> assert actual_results[0] == normalize_entity(revision4)
E AssertionError: assert {'author': {'...567843}}, ...} == {'author': {'...567843}}, ...}
E Omitting 10 identical items, use -vv to show
E Differing items:
E {'parents': [b',\xbd{\xb2,e;\xbb#\xa2\x96W\x85*P\xa0\x1bY\x1dF']} != {'parents': (b',\xbd{\xb2,e;\xbb#\xa2\x96W\x85*P\xa0\x1bY\x1dF',)}
E {'extra_headers': []} != {'extra_headers': ()}
E Full diff:
E {
E 'author': {'email': b'me@soft.heri',...
E
E ...Full output truncated (29 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:977: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 21 2020, 10:58 AM