Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 7 2021, 4:55 PM
Details
self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f2924052dd8> swh_storage = <RemoteStorage url=mock://example.com/> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f292404a978> def test_release_add(self, swh_storage, sample_data): release, release2 = sample_data.releases[:2] init_missing = swh_storage.release_missing([release.id, release2.id]) assert list(init_missing) == [release.id, release2.id] actual_result = swh_storage.release_add([release, release2]) assert actual_result == {"release:add": 2} end_missing = swh_storage.release_missing([release.id, release2.id]) assert list(end_missing) == [] assert list(swh_storage.journal_writer.journal.objects) == [ ("release", release), ("release", release2), ] # already present so nothing added actual_result = swh_storage.release_add([release, release2]) > assert actual_result == {"release:add": 0} E AssertionError: assert {'release:add': 2} == {'release:add': 0} E Differing items: E {'release:add': 2} != {'release:add': 0} E Full diff: E - {'release:add': 0} E ? ^ E + {'release:add': 2} E ? ^ .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:1285: AssertionError