Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 29 2021, 11:06 AM
Details
self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f62483fd550> swh_storage = <RemoteStorage url=mock://example.com/> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f62479c27b8> def test_directory_add_twice(self, swh_storage, sample_data): directory = sample_data.directories[1] actual_result = swh_storage.directory_add([directory]) assert actual_result == {"directory:add": 1} assert list(swh_storage.journal_writer.journal.objects) == [ ("directory", directory) ] actual_result = swh_storage.directory_add([directory]) > assert actual_result == {"directory:add": 0} E AssertionError: assert {'directory:add': 1} == {'directory:add': 0} E Differing items: E {'directory:add': 1} != {'directory:add': 0} E Full diff: E - {'directory:add': 0} E ? ^ E + {'directory:add': 1} E ? ^ .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:716: AssertionError