client = <django.test.client.Client object at 0x7f90e7de0e10>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f90e7de0ac8>
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f90e7de0978>
origin = {'archives': ['libtess2.zip'], 'id': b'\x0fH`\x80Q\x0eN\xeb\x98\xbe\x0c\xc8k\xa8\x06\xc0\xc7>\xe8\xa2', 'metadata': {'...ma/codemeta-2.0', 'description': 'Game and tools oriented refactored version of GLU tessellator.'}, 'type': 'git', ...}
def test_revision_origin_snapshot_browse(client, archive_data, swh_scheduler, origin):
snapshot = archive_data.snapshot_get_latest(origin["url"])
revision = archive_data.snapshot_get_head(snapshot)
> _revision_browse_checks(client, archive_data, revision, origin_url=origin["url"])
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_revision.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_revision.py:342: in _revision_browse_checks
assert_contains(resp, "vault-cook-directory")
.tox/py3/lib/python3.7/site-packages/django/test/testcases.py:454: in assertContains
self.assertTrue(real_count != 0, msg_prefix + "Couldn't find %s in response" % text_repr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.test.testcases.TestCase testMethod=run>, expr = False
msg = "False is not true : Couldn't find 'vault-cook-directory' in response"
def assertTrue(self, expr, msg=None):
"""Check that the expression is true."""
if not expr:
msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr))
> raise self.failureException(msg)
E AssertionError: False is not true : Couldn't find 'vault-cook-directory' in response
/usr/lib/python3.7/unittest/case.py:692: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Sep 1 2022, 12:00 PM