Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jul 27 2020, 10:17 PM
Details
swh_storage = <swh.storage.retry.RetryingProxyStorage object at 0x7fbe99cef0b8> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fbe99cef518> def test_retrying_proxy_swh_storage_origin_visit_add(swh_storage, sample_data): """Standard origin_visit_add works as before """ origin = sample_data.origin visit = sample_data.origin_visit assert visit.origin == origin.url swh_storage.origin_add([origin]) origins = list(swh_storage.origin_visit_get(origin.url)) assert not origins origin_visit = swh_storage.origin_visit_add([visit])[0] assert origin_visit.origin == origin.url assert isinstance(origin_visit.visit, int) > origin_visit = next(swh_storage.origin_visit_get(origin.url)) E TypeError: 'dict' object is not an iterator .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_retry.py:279: TypeError