Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.deposit.tests.test_deposit::test_deposit_loading_ok
Failed

TEST RESULT

Run At
Jul 10 2020, 11:45 AM
Details
self = <Retrying object at 0x7f09277204a8 (stop=<tenacity.stop.stop_after_attempt object at 0x7f0927656358>, wait=<tenacity.w...0x7f09276580d0>, before=<function before_nothing at 0x7f09276c6bf8>, after=<function after_nothing at 0x7f0927692620>)> fn = <function RetryingProxyStorage.metadata_authority_add at 0x7f092771d9d8> args = (<swh.storage.retry.RetryingProxyStorage object at 0x7f09258fc5c0>, [MetadataAuthority(type=<MetadataAuthorityType.DEP...rl='https://hal-test.archives-ouvertes.fr/', metadata=<swh.model.collections.ImmutableDict object at 0x7f0925020898>)]) kwargs = {}, retry_state = <tenacity.RetryCallState object at 0x7f0924f4ec18> do = <tenacity.DoAttempt object at 0x7f09258f3240> def call(self, fn, *args, **kwargs): self.begin(fn) retry_state = RetryCallState( retry_object=self, fn=fn, args=args, kwargs=kwargs) while True: do = self.iter(retry_state=retry_state) if isinstance(do, DoAttempt): try: > result = fn(*args, **kwargs) E TypeError: metadata_authority_add() missing 2 required positional arguments: 'url' and 'metadata' .tox/py3/lib/python3.7/site-packages/tenacity/__init__.py:412: TypeError The above exception was the direct cause of the following exception: swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_deposit_loading_ok0/loader.yml' requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f0925020048> def test_deposit_loading_ok(swh_config, requests_mock_datadir): url = "https://hal-test.archives-ouvertes.fr/some-external-id" deposit_id = 666 loader = DepositLoader(url, deposit_id) > actual_load_status = loader.load() .tox/py3/lib/python3.7/site-packages/swh/loader/package/deposit/tests/test_deposit.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/loader/package/deposit/loader.py:143: in load self.storage.metadata_authority_add([authority]) .tox/py3/lib/python3.7/site-packages/tenacity/__init__.py:329: in wrapped_f return self.call(f, *args, **kw) .tox/py3/lib/python3.7/site-packages/tenacity/__init__.py:409: in call do = self.iter(retry_state=retry_state) .tox/py3/lib/python3.7/site-packages/tenacity/__init__.py:369: in iter six.raise_from(retry_exc, fut.exception()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ value = None from_value = TypeError("metadata_authority_add() missing 2 required positional arguments: 'url' and 'metadata'") > ??? E tenacity.RetryError: RetryError[<Future at 0x7f09258f3898 state=finished raised TypeError>] <string>:3: RetryError