Edited unit tests

This test caused a breach in security due to the alert block displaying sensitive data.
This commit is contained in:
Théo DURR 2023-03-08 20:47:59 +01:00
parent 16150905a0
commit 5ea181829e
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
2 changed files with 1 additions and 8 deletions

View File

@ -4,9 +4,6 @@
<div id="page"> <div id="page">
<h3>{% trans %}404, Not Found{% endtrans %}</h3> <h3>{% trans %}404, Not Found{% endtrans %}</h3>
<p class="alert alert-red">
{{ exception }}
</p>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -142,8 +142,4 @@ class GalaxyTest(TestCase):
Galaxy.rule() Galaxy.rule()
self.client.login(username="root", password="plop") self.client.login(username="root", password="plop")
response = self.client.get("/galaxy/2/") response = self.client.get("/galaxy/2/")
self.assertContains( self.assertEquals(response.status_code, 404)
response,
"Ce citoyen n&#39;a pas encore rejoint la galaxie",
status_code=404,
)