Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

i18n-test: Update translated strings in test_email_translation.

Lauryn Menardc53a96a7b049
diff --git a/zerver/tests/test_i18n.py b/zerver/tests/test_i18n.py
index 28516ce1fdf..ac9075e4ad7 100644
--- a/zerver/tests/test_i18n.py
+++ b/zerver/tests/test_i18n.py
@@ -24,7 +24,7 @@ class EmailTranslationTestCase(ZulipTestCase):
def check_translation(phrase: str, request_type: str, *args: Any, **kwargs: Any) -> None:
if request_type == "post":
self.client_post(*args, **kwargs)
- elif request_type == "patch": # nocoverage: see comment below
+ elif request_type == "patch":
self.client_patch(*args, **kwargs)
email_message = mail.outbox[0]
@@ -43,10 +43,12 @@ class EmailTranslationTestCase(ZulipTestCase):
invite_expires_in_minutes = 2 * 24 * 60
self.login_user(hamlet)
- # TODO: Uncomment and replace with translation once we have German translations for the strings
- # in confirm_new_email.txt.
- # Also remove the "nocoverage" from check_translation above.
- # check_translation("Viele Grüße", "patch", "/json/settings", {"email": "[email protected]"})
+ check_translation(
+ "Wir haben eine Anfrage erhalten",
+ "patch",
+ "/json/settings",
+ {"email": "[email protected]"},
+ )
check_translation(
"Incrível!",
"post",
@@ -70,9 +72,7 @@ class EmailTranslationTestCase(ZulipTestCase):
with self.settings(DEVELOPMENT_LOG_EMAILS=True):
enqueue_welcome_emails(hamlet)
- # TODO: Uncomment and replace with translation once we have German translations for the strings
- # in account_registered emails.
- # check_translation("Viele Grüße", "")
+ check_translation("Hier findest du einige Tipps", "")
class TranslationTestCase(ZulipTestCase):