Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_api_client.TestStorageApi::test_content_add_twice
Failed

TEST RESULT

Run At
Apr 29 2021, 11:06 AM
Details
self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f62477835f8> swh_storage = <RemoteStorage url=mock://example.com/> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f62477c6470> def test_content_add_twice(self, swh_storage, sample_data): cont, cont2 = sample_data.contents[:2] actual_result = swh_storage.content_add([cont]) assert actual_result == { "content:add": 1, "content:add:bytes": cont.length, } assert len(swh_storage.journal_writer.journal.objects) == 1 actual_result = swh_storage.content_add([cont, cont2]) > assert actual_result == { "content:add": 1, "content:add:bytes": cont2.length, } E AssertionError: assert {'content:add...add:bytes': 5} == {'content:add...add:bytes': 5} E Omitting 1 identical items, use -vv to show E Differing items: E {'content:add': 2} != {'content:add': 1} E Full diff: E - {'content:add': 1, 'content:add:bytes': 5} E ? ^ E + {'content:add': 2, 'content:add:bytes': 5}... E E ...Full output truncated (2 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:261: AssertionError