Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_in_memory.TestInMemoryStorage::test_content_add_collision
Failed

TEST RESULT

Run At
Apr 29 2021, 11:01 AM
Details
self = <swh.storage.tests.test_in_memory.TestInMemoryStorage object at 0x7f505883cbe0> swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f505883cdd8> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f505883c198> def test_content_add_collision(self, swh_storage, sample_data): cont1 = sample_data.content # create (corrupted) content with same sha1{,_git} but != sha256 sha256_array = bytearray(cont1.sha256) sha256_array[0] += 1 cont1b = attr.evolve(cont1, sha256=bytes(sha256_array)) with pytest.raises(HashCollision) as cm: > swh_storage.content_add([cont1, cont1b]) E Failed: DID NOT RAISE <class 'swh.storage.exc.HashCollision'> .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:279: Failed