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
Failed

TEST RESULT

Run At
Aug 4 2020, 11:19 AM
Details
client = <django.test.client.Client object at 0x7f0e7fbb1470> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588> @given(content_text()) > def test_content_view_text(client, archive_data, content): .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ client = <django.test.client.Client object at 0x7f0e7fbb1470> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588> content = {'blake2s256': '10d45e33c688be4d01fe8177928a6d2c36ecdf9d6ab301dc9816ee17310162b4', 'data': '!function(n,e){"use strict...le.error("highlight.js not detected!")}(window,document);', 'encoding': 'us-ascii', 'hljs_language': 'javascript', ...} @given(content_text()) def test_content_view_text(client, archive_data, content): sha1_git = content["sha1_git"] url = reverse( "browse-content", url_args={"query_string": content["sha1"]}, query_params={"path": content["path"]}, ) 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) mimetype = content_display["mimetype"] > 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:58: AssertionError