swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f0efb0af908>
sample_data = {'authority': [{'metadata': {'location': 'France'}, 'type': 'deposit', 'url': 'http://hal.inria.example.com/'}], 'cont...384>, 'target': b'12345678901234567890', 'type': 'dir'}), 'id': b'4\x013B2S1\x000\xf51\xe62\xa73\xff7\xc3\xa90'}], ...}
def test_retrying_proxy_storage_origin_metadata_add(swh_storage, sample_data):
"""Standard origin_metadata_add works as before
"""
ori_meta = sample_data["origin_metadata"][0]
swh_storage.origin_add_one({"url": ori_meta["origin_url"]})
swh_storage.metadata_authority_add(**sample_data["authority"][0])
swh_storage.metadata_fetcher_add(**sample_data["fetcher"][0])
origin_metadata = swh_storage.origin_metadata_get(
ori_meta["origin_url"], ori_meta["authority"]
)
> assert not origin_metadata
E AssertionError: assert not {'next_page_token': None, 'results': []}
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_retry.py:585: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jun 8 2020, 12:52 PM