Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.common.test_archive::Tests / Python tests / test_lookup_content_ctags_no_hash
Failed

TEST RESULT

Run At
Aug 4 2022, 10:41 AM
Details
def test_lookup_content_ctags_no_hash(): unknown_content_ = random_content() actual_ctags = list( > archive.lookup_content_ctags("sha1:%s" % unknown_content_["sha1"]) ) .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_archive.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ q = 'sha1:681cb15b2a6be0366360aad49c0de8c2daae0305' def lookup_content_ctags(q): """Return ctags information from a specified content. Args: q: query string of the form <hash_algo:hash> Yields: ctags information (dict) list if the content is found. """ sha1 = _lookup_content_sha1(q) if not sha1: return None > ctags = list(idx_storage.content_ctags_get([sha1])) E AttributeError: 'IndexerStorage' object has no attribute 'content_ctags_get' .tox/py3/lib/python3.7/site-packages/swh/web/common/archive.py:165: AttributeError