client = <django.test.client.Client object at 0x7f0e80345240>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588>
@given(content_image_type())
> def test_content_view_image(client, archive_data, content):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
client = <django.test.client.Client object at 0x7f0e80345240>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588>
content = {'blake2s256': '84a7cc649b28c119ee6d6b3a40df3dda2cb4435a482a829721fcad80d59d2aa6', 'data': '/9j/4AAQSkZJRgABAQAAAQABAA...EBPwByf//EABQRAQAAAAAAAAAAAAAAAAAAAID/2gAIAQMBAT8Acn//2Q==', 'encoding': 'binary', 'hljs_language': 'nohighlight', ...}
@given(content_image_type())
def test_content_view_image(client, archive_data, content):
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)
mimetype = content_display["mimetype"]
content_data = content_display["content_data"]
> 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:128: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 4 2020, 11:19 AM