From 1110ec92d5f4997e104d59a23aac209eb7e546ef Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Wed, 9 Jul 2025 17:23:25 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85(backend)=20fix=20test=20access=20crea?= =?UTF-8?q?te?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Importing the french translation broke a test because the subject was not in english anymore. We change the admin user language to english to keep the subject in english. --- .../core/tests/documents/test_api_documents_ask_for_access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/core/tests/documents/test_api_documents_ask_for_access.py b/src/backend/core/tests/documents/test_api_documents_ask_for_access.py index 88a886d5..23bb8d50 100644 --- a/src/backend/core/tests/documents/test_api_documents_ask_for_access.py +++ b/src/backend/core/tests/documents/test_api_documents_ask_for_access.py @@ -48,7 +48,7 @@ def test_api_documents_ask_for_access_create_authenticated(): An email should be sent to document owners and admins to notify them. """ owner_user = UserFactory(language="en-us") - admin_user = UserFactory(language="fr-fr") + admin_user = UserFactory(language="en-us") document = DocumentFactory( users=[ (owner_user, RoleChoices.OWNER),