Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Aug 4 2022, 10:43 AM
Details
def test_lookup_expression_no_result(): expected_ctags = [] actual_ctags = list( > archive.lookup_expression("barfoo", last_sha1=None, per_page=10) ) .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_archive.py:153: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ expression = 'barfoo', last_sha1 = None, per_page = 10 def lookup_expression(expression, last_sha1, per_page): """Lookup expression in raw content. Args: expression (str): An expression to lookup through raw indexed content last_sha1 (str): Last sha1 seen per_page (int): Number of results per page Yields: ctags whose content match the expression """ limit = min(per_page, MAX_LIMIT) > ctags = idx_storage.content_ctags_search( expression, last_sha1=last_sha1, limit=limit ) E AttributeError: 'IndexerStorage' object has no attribute 'content_ctags_search' .tox/py3/lib/python3.7/site-packages/swh/web/common/archive.py:85: AttributeError