Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.browse.views.test_origin::Tests / Python tests / test_origin_content_view
Failed

TEST RESULT

Run At
Aug 4 2020, 11:19 AM
Details
client = <django.test.client.Client object at 0x7f0e803b4748> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588> @given(origin_with_multiple_visits()) > def test_origin_content_view(client, archive_data, origin): .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_origin.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_origin.py:106: in test_origin_content_view tdata["content"], _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ client = <django.test.client.Client object at 0x7f0e803b4748> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588> origin_info = {'archives': ['highlightjs-line-numbers.js.zip', 'highlightjs-line-numbers.js_visit2.zip'], 'type': 'git', 'url': 'https://github.com/wcoder/highlightjs-line-numbers.js'} origin_visit = {'date': '2020-08-04T09:17:23.297868+00:00', 'metadata': {}, 'origin': 'https://github.com/wcoder/highlightjs-line-numbers.js', 'snapshot': 'da8abf3ec5203afa1561754a041aca64d7580ec2', ...} origin_branches = [{'date': '18 December 2018, 19:31 UTC', 'directory': '5b61d50ef35ca9a4618a3572bde947b8cccf71ad', 'message': 'Merge pu...ca09d659cc07ad2eb4a119ab6ec49efd0c113e35', 'message': 'Fixed url\n', 'name': 'refs/remotes/origin/gh-pages', ...}, ...] origin_releases = [{'branch_name': 'refs/tags/v2.0.0', 'date': '31 May 2017, 22:54 UTC', 'directory': 'f56e2d15416d5f2756310daae3fda26d6... UTC', 'directory': '5b61d50ef35ca9a4618a3572bde947b8cccf71ad', 'id': '6877028d6e5412780517d0bfa81f07f6c51abb41', ...}] root_dir_sha1 = '5b61d50ef35ca9a4618a3572bde947b8cccf71ad' content = {'blake2s256': '10e9d3d9d26d71d1c50c74b1c7f215cefadd74bd421b29ed76bd0fd2a4801941', 'data': 'var gulp = require(\'gulp\...\n }))\n .pipe(gulp.dest(\'dist\'));\n});\n', 'encoding': 'us-ascii', 'hljs_language': 'javascript', ...} visit_id = 2, timestamp = None, snapshot_id = None def _origin_content_view_test_helper( client, archive_data, origin_info, origin_visit, origin_branches, origin_releases, root_dir_sha1, content, visit_id=None, timestamp=None, snapshot_id=None, ): content_path = "/".join(content["path"].split("/")[1:]) if not visit_id and not snapshot_id: visit_id = origin_visit["visit"] query_params = {"origin_url": origin_info["url"], "path": content_path} if timestamp: query_params["timestamp"] = timestamp if visit_id: query_params["visit_id"] = visit_id elif snapshot_id: query_params["snapshot"] = snapshot_id url = reverse("browse-origin-content", query_params=query_params) 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_origin.py:919: AssertionError