Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Sep 1 2022, 12:00 PM
Details
client = <django.test.client.Client object at 0x7f90f1994f98> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f90f1994fd0> directory_with_subdirs = '73425ab9abe2e4ac731e02ad96202c5bc96b4583' def test_sub_directory_view(client, archive_data, directory_with_subdirs): dir_content = archive_data.directory_ls(directory_with_subdirs) subdir = random.choice([e for e in dir_content if e["type"] == "dir"]) subdir_content = archive_data.directory_ls(subdir["target"]) _directory_view_checks( > client, directory_with_subdirs, subdir_content, subdir["name"] ) .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_directory.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_directory.py:492: in _directory_view_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