swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f13171d41d0>
sample_data = {'authority': [{'metadata': {'location': 'France'}, 'type': 'deposit-client', 'url': 'http:///hal/inria'}], 'content':...384>, 'target': b'12345678901234567890', 'type': 'dir'}], 'id': b'4\x013B2S1\x000\xf51\xe62\xa73\xff7\xc3\xa90'}], ...}
mocker = <pytest_mock.plugin.MockFixture object at 0x7f13171d4198>
fake_hash_collision = HashCollision('sha1', '38762cf7f55934b34d179ae6a4c80cadccbb7f0a', [])
def test_retrying_proxy_storage_tool_add_with_retry(
swh_storage, sample_data, mocker, fake_hash_collision
):
"""Multiple retries for hash collision and psycopg2 error but finally ok
"""
> sample_tool = sample_data["tool"][0]
E KeyError: 'tool'
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_retry.py:455: KeyError
TEST RESULT
TEST RESULT
- Run At
- Apr 21 2020, 2:18 PM