client = <django.test.client.Client object at 0x7fbe65690278>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7fbe6beb4cc0>
@given(origin())
> def test_origin_branches(client, archive_data, origin):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_origin.py:392:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_origin.py:399: in test_origin_branches
_origin_branches_test_helper(client, origin, snapshot_content)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
client = <django.test.client.Client object at 0x7fbe65690278>
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_snapshot = ([{'date': '18 December 2018, 19:31 UTC', 'directory': '5b61d50ef35ca9a4618a3572bde947b8cccf71ad', 'message': 'Merge p...UTC', 'directory': '5b61d50ef35ca9a4618a3572bde947b8cccf71ad', 'id': '6877028d6e5412780517d0bfa81f07f6c51abb41', ...}])
snapshot_id = None
def _origin_branches_test_helper(
client, origin_info, origin_snapshot, snapshot_id=None
):
query_params = {"origin_url": origin_info["url"], "snapshot": snapshot_id}
url = reverse("browse-origin-branches", 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:1109: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 7 2020, 2:30 PM