Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jun 11 2020, 3:42 PM
Details
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f0194ae62e8> 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'}], ...} mocker = <pytest_mock.plugin.MockFixture object at 0x7f0194a4b2b0> def test_retrying_proxy_swh_storage_origin_visit_add_failure( swh_storage, sample_data, mocker ): """Unfiltered errors are raising without retry """ mock_memory = mocker.patch("swh.storage.in_memory.InMemoryStorage.origin_visit_add") mock_memory.side_effect = StorageArgumentException("Refuse to add origin always!") origin_url = sample_data["origin"][0]["url"] origin = list(swh_storage.origin_visit_get(origin_url)) assert not origin with pytest.raises(StorageArgumentException, match="Refuse to add"): > swh_storage.origin_visit_add(origin_url, date_visit1, "svn") E TypeError: origin_visit_add() takes 2 positional arguments but 4 were given .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_retry.py:416: TypeError