swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f5a182fe4e0>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f5b2e64afd0>
def test_origin_get_latest_visit_status_filter_status(swh_storage, sample_data):
> objects = init_storage_with_origin_visits(swh_storage, sample_data)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_origin.py:238:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f5a182fe4e0>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f5b2e64afd0>
def init_storage_with_origin_visits(swh_storage, sample_data):
"""Initialize storage with origin/origin-visit/origin-visit-status
"""
> snapshot = sample_data["snapshot"][2]
E TypeError: 'StorageData' object is not subscriptable
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_origin.py:121: TypeError
TEST RESULT
TEST RESULT
- Run At
- Jul 22 2020, 9:22 AM