self = <swh.storage.tests.test_in_memory.TestInMemoryStorage object at 0x7fb60aef3a58>
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7fb60aef3780>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb60aef39e8>
def test_origin_visit_status_add_unknown_type(self, swh_storage, sample_data):
ov = OriginVisit(
origin=sample_data.origin.url,
date=now(),
type=sample_data.type_visit1,
visit=42,
)
ovs = OriginVisitStatus(
origin=ov.origin,
visit=ov.visit,
date=now(),
status="created",
snapshot=None,
)
with pytest.raises(StorageArgumentException):
swh_storage.origin_visit_status_add([ovs])
> swh_storage.origin_add([sample_data.origin])
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:1642:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.in_memory.InMemoryStorage object at 0x7fb60aef3780>
origins = [Origin(url='https://github.com/user1/repo1')]
def origin_add(self, origins: List[Origin]) -> Dict[str, int]:
> 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:937: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Apr 22 2021, 8:33 PM