Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.misc.test_badges::Tests / Python tests / test_snapshot_badge
Failed

TEST RESULT

Run At
Aug 7 2020, 2:30 PM
Details
client = <django.test.client.Client object at 0x7fbe62357c88> @given(snapshot()) > def test_snapshot_badge(client, snapshot): .tox/py3/lib/python3.7/site-packages/swh/web/tests/misc/test_badges.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/misc/test_badges.py:67: in test_snapshot_badge _test_badge_endpoints(client, SNAPSHOT, snapshot) .tox/py3/lib/python3.7/site-packages/swh/web/tests/misc/test_badges.py:145: in _test_badge_endpoints resp = client.get(url) .tox/py3/lib/python3.7/site-packages/django/test/client.py:535: in get response = super().get(path, data=data, secure=secure, **extra) .tox/py3/lib/python3.7/site-packages/django/test/client.py:347: in get **extra, .tox/py3/lib/python3.7/site-packages/django/test/client.py:422: in generic return self.request(**r) .tox/py3/lib/python3.7/site-packages/django/test/client.py:503: in request raise exc_value .tox/py3/lib/python3.7/site-packages/django/core/handlers/exception.py:34: in inner response = get_response(request) .tox/py3/lib/python3.7/site-packages/django/core/handlers/base.py:115: in _get_response response = self.process_exception_by_middleware(e, request) .tox/py3/lib/python3.7/site-packages/django/core/handlers/base.py:113: in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) .tox/py3/lib/python3.7/site-packages/swh/web/misc/badges.py:106: in _swh_badge swh_object = service.lookup_object(object_type, object_id) .tox/py3/lib/python3.7/site-packages/swh/web/common/service.py:1308: in lookup_object return lookup_snapshot(object_id) .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 0x7fbe63442e58> "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