mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 02:24:26 +00:00
club: fix tests with inclusive translation
This commit is contained in:
parent
05dd3ad642
commit
e4ddceabea
@ -161,10 +161,10 @@ class ClubTest(TestCase):
|
|||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
reverse("club:club_members", kwargs={"club_id": self.bdf.id})
|
reverse("club:club_members", kwargs={"club_id": self.bdf.id})
|
||||||
)
|
)
|
||||||
self.assertTrue(response.status_code == 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
self.assertTrue(
|
self.assertIn(
|
||||||
"""Richard Batsbak</a></td>\\n <td>Vice-Pr\\xc3\\xa9sident</td>"""
|
"""Richard Batsbak</a></td>\n <td>Vice-Président⸱e</td>""",
|
||||||
in str(response.content)
|
response.content.decode(),
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_create_add_user_to_club_from_richard_fail(self):
|
def test_create_add_user_to_club_from_richard_fail(self):
|
||||||
@ -369,14 +369,15 @@ class ClubTest(TestCase):
|
|||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
reverse("club:club_members", kwargs={"club_id": self.bdf.id})
|
reverse("club:club_members", kwargs={"club_id": self.bdf.id})
|
||||||
)
|
)
|
||||||
self.assertTrue(response.status_code == 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
content = str(response.content)
|
content = response.content.decode()
|
||||||
self.assertTrue(
|
self.assertIn(
|
||||||
"Richard Batsbak</a></td>\\n <td>Curieux</td>" in content
|
"Richard Batsbak</a></td>\n <td>Curieux⸱euse</td>",
|
||||||
|
content,
|
||||||
)
|
)
|
||||||
self.assertTrue(
|
self.assertIn(
|
||||||
"S' Kia</a></td>\\n <td>Responsable info</td>"
|
"S' Kia</a></td>\n <td>Responsable info</td>",
|
||||||
in content
|
content,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user