api_client = <rest_framework.test.APIClient object at 0x7f0e85ed3b70>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588>
@given(content())
> def test_api_content_metadata(api_client, archive_data, content):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_content.py:227:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
api_client = <rest_framework.test.APIClient object at 0x7f0e85ed3b70>
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())
def test_api_content_metadata(api_client, archive_data, content):
url = reverse("api-1-content", {"q": "sha1:%s" % content["sha1"]})
rv = api_client.get(url)
> assert rv.status_code == 200, rv.data
E AssertionError: {'exception': 'AttributeError', 'reason': "'dict' object has no attribute 'to_dict'"}
E assert 500 == 200
E +500
E -200
.tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_content.py:231: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 4 2020, 11:19 AM