client = <django.test.client.Client object at 0x7f0e803ac908>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588>
@given(content_text())
> def test_content_view_text_with_path(client, archive_data, content):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
client = <django.test.client.Client object at 0x7f0e803ac908>
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_with_path(client, archive_data, content):
path = content["path"]
url = reverse(
"browse-content",
url_args={"query_string": content["sha1"]},
query_params={"path": path},
)
resp = client.get(url)
> 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:165: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 4 2020, 11:19 AM