Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.browse.test_snapshot_context::Tests / Python tests / test_get_snapshot_context_with_origin
Failed

TEST RESULT

Run At
Aug 7 2020, 2:30 PM
Details
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7fbe6beb4cc0> @given(origin_with_multiple_visits()) > def test_get_snapshot_context_with_origin(archive_data, origin): .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/test_snapshot_context.py:166: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/test_snapshot_context.py:189: in test_get_snapshot_context_with_origin snapshot_context = get_snapshot_context(**kwargs, browse_context=browse_context) .tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py:468: in get_snapshot_context origin_info, timestamp, visit_id, snapshot_id .tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py:392: in get_origin_visit_snapshot return get_snapshot_content(visit_info["snapshot"]) .tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py:340: in get_snapshot_content snapshot_id, branches_count=snapshot_content_max_size .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 0x7fbe6f4683b8> "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