Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Aug 7 2020, 2:30 PM
Details
@given(origin(), revision()) > def test_lookup_revision_with_context_by_ko(origin, revision): .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_service.py:687: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_service.py:690: in test_lookup_revision_with_context_by_ko origin["url"], "invalid-branch-name", None, revision .tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:683: in lookup_revision_with_context_by rev_root_id = _lookup_revision_id_by(origin, branch_name, timestamp) .tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:572: in _lookup_revision_id_by branch = _get_snapshot_branch(visit["snapshot"], branch_name) .tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:557: in _get_snapshot_branch visit["snapshot"], branches_from=branch_name, branches_count=10 .tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:1060: in lookup_snapshot for (branch_name, branch) in snapshot["branches"].items() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .0 = <dict_itemiterator object at 0x7fbe62bfdd68> "branches": { branch_name: branch.to_dict() if branch else None > for (branch_name, branch) in snapshot["branches"].items() }, "next_branch": snapshot["next_branch"], } ) E AttributeError: 'dict' object has no attribute 'to_dict' .tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:1060: AttributeError