From b4c1e34aac4979a40197bc6a8bd1361e0edb1d3b Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: Thu, 18 Jan 2024 13:30:13 +0530 Subject: [PATCH] Fix the tests to allow for the modified strings Signed-off-by: Akashdeep Dhar --- tests/unit/translations/test_translations.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/unit/translations/test_translations.py b/tests/unit/translations/test_translations.py index 5089ee8d0..f03dcfc75 100644 --- a/tests/unit/translations/test_translations.py +++ b/tests/unit/translations/test_translations.py @@ -43,7 +43,4 @@ def test_translation_in_template_french(client, compile_catalogs): assert result.status_code == 404 page = BeautifulSoup(result.data, 'html.parser') message = page.select_one(".alert.alert-danger") - assert ( - message.get_text(strip=True) - == "404Cette page n'a pas été trouvée. Et voilà, tu as tout gâché." - ) + assert message.get_text(strip=True) == "404Cette page n'a pas été trouvée."