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
Mar 10 2021, 11:39 AM
Details
client = <django.test.client.Client object at 0x7f87af3b1b38> tests_data = {'contents': [{'blake2s256': 'b1bfdc06fc16d8330a5c5229198b7975dc1d5116fcf26dc51b24b8209a512624', 'data': "# highlightj...96I\x1a;\xbc\xa6\xfb\x9c\xb5\x9b2"v\x02\x8b\xbeW\x89W\xdf\xea\x9b,W\xb2t\xeey\xf6\xbc*ZX:\xb95\xfc\xf3\xaf', ...}, ...} @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:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_directory.py:197: 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:205: 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:66: 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 ) elif isinstance(response, StreamingHttpResponse): error_context = getattr(response, "traceback", response.streaming_content) 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 242, 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 53, 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 474, 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 398, 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 343, 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 1088, in lookup_snapshot E branch_name_exclude_prefix.encode() if branch_name_exclude_prefix else None, E TypeError: snapshot_get_branches() takes from 2 to 5 positional arguments but 7 were given E E assert 500 == 200 E +500 E -200 .tox/py3/lib/python3.7/site-packages/swh/web/tests/utils.py:32: AssertionError