Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Nov 26 2020, 6:22 PM
Details
client = <django.test.client.Client object at 0x7fdb30b726d8> tests_data = {'contents': [{'blake2s256': '1601b18e7c19798e458bdad5841a438139231f06c5194068eba65b445ea505c0', 'data': '/*\r\n** SGI...\xc2\x8c\xf0C\xf2\xe8C\xa7\xdan\x89\r\x1b\x9e', b';mK}\xc2\x88\xc8\x00\xfe\xbc]\xb3~\xb4\x0e@C\xf8\xca\xbf', ...}, ...} @given(directory()) > def test_permalink_box_context(client, tests_data, directory): .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_directory.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_directory.py:179: in test_permalink_box_context client, url, status_code=200, template_used="browse/directory.html" .tox/py3/lib/python3.7/site-packages/swh/web/tests/utils.py:203: in check_html_get_response client, url, status_code, content_type="text/html" .tox/py3/lib/python3.7/site-packages/swh/web/tests/utils.py:64: in check_http_get_response content_type=content_type, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <HttpResponse status_code=500, "text/html; charset=utf-8"> status_code = 200, content_type = 'text/html' def _assert_http_response( response: HttpResponse, status_code: int, content_type: str ) -> HttpResponse: if isinstance(response, Response): drf_response = cast(Response, response) error_context = ( drf_response.data.pop("traceback") if isinstance(drf_response.data, dict) and "traceback" in drf_response.data else drf_response.data ) else: error_context = getattr(response, "traceback", response.content) > assert response.status_code == status_code, error_context E AssertionError: Traceback (most recent call last): E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response E response = wrapped_callback(request, *callback_args, **callback_kwargs) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/web/browse/views/directory.py", line 230, in directory_browse E return _directory_browse(request, sha1_git, request.GET.get("path")) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/web/browse/views/directory.py", line 45, in _directory_browse E path=path, E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py", line 466, in get_snapshot_context E origin_info, timestamp, visit_id, snapshot_id E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py", line 390, in get_origin_visit_snapshot E return get_snapshot_content(visit_info["snapshot"]) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py", line 335, in get_snapshot_content E snapshot_id, branches_count=snapshot_content_max_size E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/web/common/archive.py", line 1069, in lookup_snapshot E branches_name_pattern, E TypeError: snapshot_get_branches() takes from 2 to 5 positional arguments but 6 were given E E assert 500 == 200 E +500 E -200 .tox/py3/lib/python3.7/site-packages/swh/web/tests/utils.py:30: AssertionError