From 62c3dd6b5d06243bc4ad3aa54eb10eede69ed3cd Mon Sep 17 00:00:00 2001 From: Robin Weber Date: Wed, 4 Dec 2024 12:09:04 +0100 Subject: [PATCH] =?UTF-8?q?fixup!=20=F0=9F=90=9B(backend)=20email=20invite?= =?UTF-8?q?=20in=20receivers=20language?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit E-mails sent for granting access are sent in the receiving users language. Falling back to system default language. Co-authored-by: Samuel Paccoud --- .../core/tests/documents/test_api_document_invitations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/core/tests/documents/test_api_document_invitations.py b/src/backend/core/tests/documents/test_api_document_invitations.py index 13f278be1..db72167c9 100644 --- a/src/backend/core/tests/documents/test_api_document_invitations.py +++ b/src/backend/core/tests/documents/test_api_document_invitations.py @@ -419,7 +419,7 @@ def test_api_document_invitations_create_privileged_members( def test_api_document_invitations_create_email_from_senders_language(): """ - The email generated is from the language set on the sending user + When inviting on a document a user who does not exist yet in our database, the invitation email should be sent in the language of the sending user. """ user = factories.UserFactory(language="fr-fr") document = factories.DocumentFactory()