mirror of
https://github.com/ae-utbm/sith.git
synced 2025-03-04 12:27:12 +00:00
Edited unit tests
This test caused a breach in security due to the alert block displaying sensitive data.
This commit is contained in:
parent
16150905a0
commit
5ea181829e
@ -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 %}
|
||||||
|
@ -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'a pas encore rejoint la galaxie",
|
|
||||||
status_code=404,
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user