self = <swh.storage.tests.test_api_client.TestStorage object at 0x7f194977cbe0>
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_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: {'message': b'hello', 'author': {'fullname': b'Nicolas Dandrimont <nicolas@example.com> ', 'name': b'Nicolas Dandrimont', 'email': b'nicolas@example.com'}, 'committer': {'fullname': b'St\xc3fano Zacchiroli <stefano@example.com>', 'name': b'St\xc3fano Zacchiroli', 'email': b'stefano@example.com'}, 'date': {'timestamp': {'seconds': 1234567890, 'microseconds': 0}, 'offset': 120, 'negative_utc': False}, 'committer_date': {'timestamp': {'seconds': 1123456789, 'microseconds': 0}, 'offset': 0, 'negative_utc': True}, 'type': 'git', 'directory': b'4\xf35\xa7P\x1...
E
E ...Full output truncated (67 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, 9:55 AM