self = <swh.storage.tests.test_api_client.TestStorage object at 0x7ff5b0e7b080>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7ff5b0e6af98>
def test_content_metadata_add_duplicate(self, swh_storage):
"""Duplicates should be silently updated."""
content = data.cont
fetcher = data.metadata_fetcher
authority = data.metadata_authority
content_swhid = f"swh:1:cnt:{content['sha1_git']}"
new_content_metadata2 = {
**data.content_metadata2,
"format": "new-format",
"metadata": b"new-metadata",
}
swh_storage.metadata_fetcher_add(**fetcher)
swh_storage.metadata_authority_add(**authority)
> swh_storage.content_metadata_add(**data.content_metadata)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3205:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.validate.ValidatingProxyStorage object at 0x7ff5b0e6af98>
key = 'content_metadata_add'
def __getattr__(self, key):
if key == "storage":
raise AttributeError(key)
> return getattr(self.storage, key)
E AttributeError: 'RemoteStorage' object has no attribute 'content_metadata_add'
.tox/py3/lib/python3.7/site-packages/swh/storage/validate.py:78: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Jun 22 2020, 7:51 PM