swh_storage = <swh.storage.retry.RetryingProxyStorage object at 0x7fd495107fd0>
sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria.... perms=<DentryPerms.directory: 16384>),), id=b'7z\xa5\xfc\xd9D\xfb\xab\xf5\x02\xdb\xfd\xa5\\\xd1M3\xc8\xc3\xc6')], ...}
mocker = <pytest_mock.plugin.MockFixture object at 0x7fd496a10860>
def test_retrying_proxy_swh_storage_content_add_metadata_failure(
swh_storage, sample_data_model, mocker
):
"""Unfiltered errors are raising without retry
"""
mock_memory = mocker.patch(
"swh.storage.in_memory.InMemoryStorage.content_add_metadata"
)
mock_memory.side_effect = StorageArgumentException(
"Refuse to add content_metadata!"
)
> sample_content = sample_data_model["content_no_data"][0]
E KeyError: 'content_no_data'
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_retry.py:177: KeyError
TEST RESULT
TEST RESULT
- Run At
- Jul 21 2020, 3:06 PM