Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Aug 4 2020, 11:19 AM
Details
client = <django.test.client.Client object at 0x7f0e8036afd0> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588> @given(content_text_no_highlight()) > def test_content_view_text_no_highlight(client, archive_data, content): .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ client = <django.test.client.Client object at 0x7f0e8036afd0> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588> content = {'blake2s256': 'f9ccb7742ca758d9271bb0882d36e6a05939b133a7e65c2ed0e1f2931e5d9727', 'data': '// !$*UTF8*$!\n{\n\t29B973...8CAF4101992A200956BA2 /* libtess2 */,\n\t\t);\n\t};\n}\n', 'encoding': 'us-ascii', 'hljs_language': 'nohighlight', ...} @given(content_text_no_highlight()) def test_content_view_text_no_highlight(client, archive_data, content): sha1_git = content["sha1_git"] url = reverse("browse-content", url_args={"query_string": content["sha1"]}) url_raw = reverse("browse-content-raw", 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:84: AssertionError