From 5ea181829e7e83cd24d13fe1699f343d08d1ef04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20DURR?= Date: Wed, 8 Mar 2023 20:47:59 +0100 Subject: [PATCH] Edited unit tests This test caused a breach in security due to the alert block displaying sensitive data. --- core/templates/core/404.jinja | 3 --- galaxy/tests.py | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/core/templates/core/404.jinja b/core/templates/core/404.jinja index 3846ed70..a777cea6 100644 --- a/core/templates/core/404.jinja +++ b/core/templates/core/404.jinja @@ -4,9 +4,6 @@

{% trans %}404, Not Found{% endtrans %}

-

- {{ exception }} -

{% endblock %} diff --git a/galaxy/tests.py b/galaxy/tests.py index 595844b2..d5957a16 100644 --- a/galaxy/tests.py +++ b/galaxy/tests.py @@ -142,8 +142,4 @@ class GalaxyTest(TestCase): Galaxy.rule() self.client.login(username="root", password="plop") response = self.client.get("/galaxy/2/") - self.assertContains( - response, - "Ce citoyen n'a pas encore rejoint la galaxie", - status_code=404, - ) + self.assertEquals(response.status_code, 404)