Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.algos.test_origin::test_origin_get_latest_visit_status_none
Failed

TEST RESULT

Run At
Jul 22 2020, 9:22 AM
Details
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f5a18253da0> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f5b2e64afd0> def test_origin_get_latest_visit_status_none(swh_storage, sample_data): """Looking up unknown objects should return nothing """ # unknown origin so no result assert origin_get_latest_visit_status(swh_storage, "unknown-origin") is None # unknown type so no result > origin = sample_data["origin"][0] E TypeError: 'StorageData' object is not subscriptable .tox/py3/lib/python3.7/site-packages/swh/storage/tests/algos/test_origin.py:94: TypeError