Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.api.views.test_content::Tests / Python tests / test_api_content_filetype
Failed

TEST RESULT

Run At
Aug 4 2020, 11:19 AM
Details
api_client = <rest_framework.test.APIClient object at 0x7f0e85ed3b70> indexer_data = <swh.web.tests.conftest._IndexerData object at 0x7f0e85b41470> @given(content()) > def test_api_content_filetype(api_client, indexer_data, content): .tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_content.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_client = <rest_framework.test.APIClient object at 0x7f0e85ed3b70> indexer_data = <swh.web.tests.conftest._IndexerData object at 0x7f0e85b41470> 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_filetype(api_client, indexer_data, content): indexer_data.content_add_mimetype(content["sha1"]) url = reverse( "api-1-content-filetype", url_args={"q": "sha1_git:%s" % content["sha1_git"]} ) rv = api_client.get(url) > assert rv.status_code == 200, rv.data E AssertionError: {'exception': 'AttributeError', 'reason': "'dict' object has no attribute 'sha1'"} E assert 500 == 200 E +500 E -200 .tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_content.py:24: AssertionError