self = <swh.storage.tests.test_storage.TestStorage object at 0x7f6f048b1f28>
swh_storage = <swh.storage.storage.Storage object at 0x7f6f04881550>
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_order(self, swh_storage, sample_data_model):
revision, revision2 = sample_data_model["revision"][:2]
add_result = swh_storage.revision_add([revision, revision2])
assert add_result == {"revision:add": 2}
# order 1
res1 = swh_storage.revision_get([revision.id, revision2.id])
> assert list(res1) == [revision.to_dict(), revision2.to_dict()]
E AssertionError: assert [{'author': {...67843}}, ...}] == [{'author': {...67843}}, ...}]
E At index 0 diff: {'id': b'\x06k\x1bb\xdb\xfa\x033b\t*\xf4h\xbfl\xfa\xbe\xc20\xe7', 'author': {'fullname': b'Nicolas Dandrimont <nicolas@example.com> ', 'name': b'Nicolas Dandrimont', 'email': b'nicolas@example.com'}, 'date': {'timestamp': {'seconds': 1234567890, 'microseconds': 0}, 'offset': 120, 'negative_utc': False}, 'committer': {'fullname': b'St\xc3fano Zacchiroli <stefano@example.com>', 'name': b'St\xc3fano Zacchiroli', 'email': b'stefano@example.com'}, 'committer_date': {'timestamp': {'seconds': 1123456789, 'microseconds': 0}, 'offset': 0, 'negative_utc': True}, ...
E
E ...Full output truncated (61 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:961: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 21 2020, 10:35 AM