self = <swh.storage.tests.test_api_client.TestStorage object at 0x7ff5b0d725f8>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7ff5b0d72d30>
def test_content_metadata_add_dict(self, swh_storage):
fetcher = data.metadata_fetcher
authority = data.metadata_authority
swh_storage.metadata_fetcher_add(**fetcher)
swh_storage.metadata_authority_add(**authority)
kwargs = data.content_metadata.copy()
kwargs["metadata"] = {"foo": "bar"}
with pytest.raises(StorageArgumentException):
> swh_storage.content_metadata_add(**kwargs)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3226:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.validate.ValidatingProxyStorage object at 0x7ff5b0d72d30>
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