client = <django.test.client.Client object at 0x7fbe670608d0>
@given(origin())
> def test_browse_origin_content_not_found(client, origin):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_origin.py:618:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
client = <django.test.client.Client object at 0x7fbe670608d0>
origin = {'archives': ['highlightjs-line-numbers.js.zip', 'highlightjs-line-numbers.js_visit2.zip'], 'type': 'git', 'url': 'https://github.com/wcoder/highlightjs-line-numbers.js'}
@given(origin())
def test_browse_origin_content_not_found(client, origin):
url = reverse(
"browse-origin-content",
query_params={"origin_url": origin["url"], "path": "/invalid/file/path"},
)
resp = client.get(url)
> assert resp.status_code == 404
E assert 500 == 404
E +500
E -404
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_origin.py:624: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 7 2020, 2:30 PM