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:01 AM
Details
self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f5250a14d30> swh_storage = <RemoteStorage url=mock://example.com/> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f5250b01860> 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