Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_validate::test_validating_proxy_storage_release
Failed

TEST RESULT

Run At
Apr 22 2021, 8:33 PM
Details
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fb6344b97b8> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb6344b9518> def test_validating_proxy_storage_release(swh_storage, sample_data): sample_release = sample_data.release id_ = hash_to_hex(sample_release.id) assert swh_storage.release_missing([sample_release.id]) == [sample_release.id] with pytest.raises(StorageArgumentException, match=f"should be {id_}"): s = swh_storage.release_add([attr.evolve(sample_release, id=b"a" * 20)]) assert swh_storage.release_missing([sample_release.id]) == [sample_release.id] > s = swh_storage.release_add([sample_release]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_validate.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/validate.py:67: in release_add return self.storage.release_add(releases) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7fb6344b9a90> releases = [Release(name=b'v0.0.1', message=b'synthetic release', target=b'\x01\xa7\x11O6\xfd\xdd^\xf2Q\x1b,\xad\xda#zh\xad\xbb\x...s=0), offset=42, negative_utc=False), metadata=None, id=b'\xf7\xf2"\t:\x18\xec`\xd7\x81\x07\n\xbe\xc4\xa60\xc8P\xb87')] def release_add(self, releases: List[Release]) -> Dict: > if self._check_missing: E AttributeError: 'InMemoryStorage' object has no attribute '_check_missing' .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:635: AttributeError