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 3 2021, 5:58 PM
Details
client = <django.test.client.Client object at 0x7f42ed2a0128> tests_data = {'contents': [{'blake2s256': '2bd7cda868e84b3be7cda474c62f2394095cdcbd5fb7634f1799dee879fd1d6e', 'data': "(function (w...^\x8a\xbc\x00]\x92\xa1\xe3VW`\xbd\xfed\x05\x0e\xeeX\x1e\xe3$\x9e\x04^\xea\xe2\xec\xb3\x1a\x90\x8b\xc6W\xda', ...}, ...} @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 1083, in lookup_snapshot E branch_name_exclude_pattern, 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