club: fix tests with inclusive translation

This commit is contained in:
Skia 2022-02-28 14:41:01 +01:00
parent 05dd3ad642
commit e4ddceabea

View File

@ -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&#39; Kia</a></td>\\n <td>Responsable info</td>" "S&#39; Kia</a></td>\n <td>Responsable info</td>",
in content content,
) )