self = <swh.storage.tests.test_storage.TestStorage object at 0x7f6f08c71438>
swh_storage = <swh.storage.storage.Storage object at 0x7f6f08c71668>
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_get(self, swh_storage, sample_data_model):
revision, revision2 = sample_data_model["revision"][:2]
swh_storage.revision_add([revision])
actual_revisions = list(swh_storage.revision_get([revision.id, revision2.id]))
assert len(actual_revisions) == 2
> assert actual_revisions[0] == normalize_entity(revision)
E assert {'author': {'...567890}}, ...} == {'author': {'...567890}}, ...}
E Omitting 11 identical items, use -vv to show
E Differing items:
E {'extra_headers': [[b'gpgsig', b'test123'], [b'mergetag', b'foo\\bar'], [b'mergetag', b'"\xaf\x89\x80\x01\x00']]} != {'extra_headers': ((b'gpgsig', b'test123'), (b'mergetag', b'foo\\bar'), (b'mergetag', b'"\xaf\x89\x80\x01\x00'))}
E Full diff:
E {
E 'author': {'email': b'nicolas@example.com',
E 'fullname': b'Nicolas Dandrimont <nicolas@example.com> ',...
E
E ...Full output truncated (33 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1031: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 21 2020, 10:35 AM