self = <swh.storage.tests.test_api_client.TestStorage object at 0x7ff5b0d72dd8>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7ff5b0d729e8>
def test_content_metadata_get(self, swh_storage):
authority = data.metadata_authority
fetcher = data.metadata_fetcher
authority2 = data.metadata_authority2
fetcher2 = data.metadata_fetcher2
content1_swhid = f"swh:1:cnt:{data.cont['sha1_git']}"
content2_swhid = f"swh:1:cnt:{data.cont2['sha1_git']}"
content1_metadata1 = data.content_metadata
content1_metadata2 = data.content_metadata2
content1_metadata3 = data.content_metadata3
content2_metadata = {**data.content_metadata2, "id": content2_swhid}
swh_storage.metadata_authority_add(**authority)
swh_storage.metadata_fetcher_add(**fetcher)
swh_storage.metadata_authority_add(**authority2)
swh_storage.metadata_fetcher_add(**fetcher2)
> swh_storage.content_metadata_add(**content1_metadata1)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3246:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.validate.ValidatingProxyStorage object at 0x7ff5b0d729e8>
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