From 03481e04d8088bd7150b56fb7546f9cddd518c22 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Tue, 26 Nov 2024 16:21:14 +0100 Subject: [PATCH] test: fix conftest setting of language [no changelog] --- tests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 7b82370a90..41c6c4917e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -337,7 +337,9 @@ def client( if _raw_client.model is not models.T1B1: lang = request.session.config.getoption("lang") or "en" assert isinstance(lang, str) - translations.set_language(_raw_client, lang) + translations.set_language( + SessionDebugWrapper(_raw_client.get_management_session()), lang + ) setup_params = dict( uninitialized=False,