client = <django.test.client.Client object at 0x7f913c7a7ac8>
django_settings = <swh.web.tests.conftest.SwhSettingsWrapper object at 0x7f913c7a7c18>
directory = 'c5454c336128a608beae85fd8513d3a6c2047ea6'
@pytest.mark.django_db
def test_banners_deactivate(client, django_settings, directory):
"""Check vault feature is deactivated when the swh.web.vault django
application is not in installed apps."""
url = reverse("browse-directory", url_args={"sha1_git": directory})
resp = check_html_get_response(client, url, status_code=200)
> assert_contains(resp, "swh-vault-item")
.tox/py3/lib/python3.7/site-packages/swh/web/tests/vault/test_app.py:24:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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 'swh-vault-item' 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 'swh-vault-item' in response
/usr/lib/python3.7/unittest/case.py:692: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Sep 1 2022, 12:00 PM