Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Aug 4 2020, 11:19 AM
Details
client = <django.test.client.Client object at 0x7f0e7fb44668> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588> @given(content_text_non_utf8()) > def test_content_view_no_utf8_text(client, archive_data, content): .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ client = <django.test.client.Client object at 0x7f0e7fb44668> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588> content = {'blake2s256': '683794acca5e47e33fd2f2527c9345d251cf07375d21ac48b9d4b64818870727', 'data': '\ufeff/* Localized version...adableCopyright = "Copyright 2009 __MyCompanyName__.";\n', 'encoding': 'utf-16le', 'hljs_language': 'nohighlight', ...} @given(content_text_non_utf8()) def test_content_view_no_utf8_text(client, archive_data, content): sha1_git = content["sha1_git"] url = reverse("browse-content", url_args={"query_string": content["sha1"]}) resp = client.get(url) content_display = _process_content_for_display(archive_data, content) > assert resp.status_code == 200 E assert 500 == 200 E +500 E -200 .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:108: AssertionError