client = <django.test.client.Client object at 0x7f0e85a66a58>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588>
@given(content_image_type())
> def test_content_raw_bin(client, archive_data, content):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:283:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
client = <django.test.client.Client object at 0x7f0e85a66a58>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588>
content = {'blake2s256': '3ec3d5a0f89eae3e4f15e8f834502c2148ef8c0d5bc66fc44784267df22067fd', 'data': 'iVBORw0KGgoAAAANSUhEUgAAAA...AAFUlEQVQY02NgGDLg3Llz/0GYYcgBAN3DBtMvUcW7AAAAAElFTkSuQmCC', 'encoding': 'binary', 'hljs_language': 'nohighlight', ...}
@given(content_image_type())
def test_content_raw_bin(client, archive_data, content):
url = reverse("browse-content-raw", url_args={"query_string": content["sha1"]})
resp = client.get(url)
filename = content["path"].split("/")[-1]
content_data = archive_data.content_get(content["sha1"])["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:291: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 4 2020, 11:19 AM