swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_deposit_loading_ok_20/loader.yml'
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f6a35aa4278>
def test_deposit_loading_ok_2(swh_config, requests_mock_datadir):
"""Field dates should be se appropriately
"""
external_id = "some-external-id"
url = f"https://hal-test.archives-ouvertes.fr/{external_id}"
deposit_id = 777
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:215:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/loader/package/deposit/loader.py:136: in load
self.storage.metadata_authority_add(**authority)
.tox/py3/lib/python3.7/site-packages/swh/storage/retry.py:92: in __getattr__
return getattr(self.storage, key)
.tox/py3/lib/python3.7/site-packages/swh/storage/filter.py:43: in __getattr__
return getattr(self.storage, key)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.buffer.BufferingProxyStorage object at 0x7f6a35a7ba90>
key = 'metadata_authority_add'
def __getattr__(self, key):
if key.endswith("_add"):
object_type = key.rsplit("_", 1)[0]
if object_type in self.object_types:
return partial(self.object_add, object_type=object_type, keys=["id"],)
if key == "storage":
raise AttributeError(key)
> return getattr(self.storage, key)
E AttributeError: 'Storage' object has no attribute 'metadata_authority_add'
.tox/py3/lib/python3.7/site-packages/swh/storage/buffer.py:68: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Apr 29 2020, 4:09 PM