Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.journal.tests.test_inmemory::test_write_additions_anonymized
Failed

TEST RESULT

Run At
Nov 14 2022, 11:15 AM
Details
def test_write_additions_anonymized(): writer = InMemoryJournalWriter( value_sanitizer=model_object_dict_sanitizer, anonymize=True ) expected = [] priv_expected = [] for object_type, objects in TEST_OBJECTS.items(): writer.write_additions(object_type, objects) for object in objects: if object.anonymize(): expected.append((object_type, object.anonymize())) priv_expected.append((object_type, object)) else: expected.append((object_type, object)) > assert set(priv_expected) == set(writer.privileged_objects) E AssertionError: assert {('release', ...nifest=None))} == {('release', ...nifest=None))} E Extra items in the left set: E ('release', Release(name=b'this-is-a/tag/1.0', message=b'bar', target=hash_to_bytes('050505050505050505050505050505050...uthor=None, date=None, metadata=None, id=hash_to_bytes('ee4d20e80af850cc0f417d25dc5073792c5010d2'), raw_manifest=None)) E ('release', Release(name=b'v0.0.1', message=b'foo', target=hash_to_bytes('0404040404040404040404040404040404040404'), ...ffset_bytes=b'+0200'), metadata=None, id=hash_to_bytes('8059dc4e17fcd0e51ca3bcd6b80f4577d281fd08'), raw_manifest=None)) E ('revision', Revision(message=b'hello', author=Person(fullname=b'foo... E E ...Full output truncated (34 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/journal/tests/test_inmemory.py:31: AssertionError