Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_cassandra.TestCassandraStorage::test_revision_log
Failed

TEST RESULT

Run At
Jun 3 2020, 12:37 PM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f6b5c060fd0> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f6b5c0b5f28> def test_revision_log(self, swh_storage): # given # data.revision4 -is-child-of-> data.revision3 swh_storage.revision_add([data.revision3, data.revision4]) # when actual_results = list(swh_storage.revision_log([data.revision4["id"]])) # hack: ids generated for actual_result in actual_results: if "id" in actual_result["author"]: del actual_result["author"]["id"] if "id" in actual_result["committer"]: del actual_result["committer"]["id"] assert len(actual_results) == 2 # rev4 -child-> rev3 > assert actual_results[0] == normalize_entity(data.revision4) E AssertionError: assert {'author': {'...567843}}, ...} == {'author': {'...567843}}, ...} E Omitting 10 identical items, use -vv to show E Differing items: E {'parents': (b'p&\xb7\xc1\xa2\xafVR\x1e\x95\x1c\x01\xed \xf2U\xfa\x05B8',)} != {'parents': [b'p&\xb7\xc1\xa2\xafVR\x1e\x95\x1c\x01\xed \xf2U\xfa\x05B8']} E Full diff: E { E 'author': {'email': b'me@soft.heri', E 'fullname': b'me <me@soft.heri>',... E E ...Full output truncated (23 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1040: AssertionError