self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f5990654978>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f59907cbd30>
def test_revision_get(self, swh_storage):
swh_storage.revision_add([data.revision])
actual_revisions = list(
swh_storage.revision_get([data.revision["id"], data.revision2["id"]])
)
# when
if "id" in actual_revisions[0]["author"]:
del actual_revisions[0]["author"]["id"] # hack: ids are generated
if "id" in actual_revisions[0]["committer"]:
del actual_revisions[0]["committer"]["id"]
assert len(actual_revisions) == 2
> assert actual_revisions[0] == normalize_entity(data.revision)
E AssertionError: assert {'author': {'...567890}}, ...} == {'author': {'...567890}}, ...}
E Omitting 10 identical items, use -vv to show
E Differing items:
E {'parents': (b'01234567890123456789', b'23434512345123456789')} != {'parents': [b'01234567890123456789', b'23434512345123456789']}
E Full diff:
E {
E 'author': {'email': b'nicolas@example.com',
E 'fullname': b'Nicolas Dandrimont <nicolas@example.com> ',...
E
E ...Full output truncated (26 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1103: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jun 3 2020, 12:44 PM