Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 29 2021, 11:01 AM
Details
self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f5250b0d390> swh_storage = <RemoteStorage url=mock://example.com/> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f5250b14b70> def test_revision_add_twice(self, swh_storage, sample_data): revision, revision2 = sample_data.revisions[:2] actual_result = swh_storage.revision_add([revision]) assert actual_result == {"revision:add": 1} assert list(swh_storage.journal_writer.journal.objects) == [ ("revision", revision) ] actual_result = swh_storage.revision_add([revision, revision2]) > assert actual_result == {"revision:add": 1} E AssertionError: assert {'revision:add': 2} == {'revision:add': 1} E Differing items: E {'revision:add': 2} != {'revision:add': 1} E Full diff: E - {'revision:add': 1} E ? ^ E + {'revision:add': 2} E ? ^ .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:955: AssertionError