Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_retry::test_retrying_proxy_swh_storage_object_metadata_add_failure
Failed

TEST RESULT

Run At
Jul 21 2020, 10:42 AM
Details
swh_storage_validate = <swh.storage.validate.ValidatingProxyStorage object at 0x7fc5f7f37978> sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria....11', length=7, status='visible', data=b'424242\n', ctime=datetime.datetime(2019, 12, 1, 0, 0, tzinfo=tzlocal()))], ...} mocker = <pytest_mock.plugin.MockFixture object at 0x7fc60a2a55f8> def test_retrying_proxy_swh_storage_object_metadata_add_failure( swh_storage_validate, sample_data_model, mocker ): """Unfiltered errors are raising without retry """ mock_memory = mocker.patch( "swh.storage.in_memory.InMemoryStorage.object_metadata_add" ) mock_memory.side_effect = StorageArgumentException("Refuse to add always!") origin = sample_data_model["origin"][0] ori_meta = sample_data_model["origin_metadata"][0] assert origin.url == ori_meta.id > swh_storage.origin_add([origin]) E AttributeError: 'function' object has no attribute 'origin_add' .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_retry.py:591: AttributeError