From 344576d048e15fd5329bc34db3791a5f0914caf7 Mon Sep 17 00:00:00 2001 From: qlrd Date: Sun, 25 Aug 2024 21:31:18 -0300 Subject: [PATCH] fixed bug on default locale if OS locale isnt supported II --- e2e/test_019_config_krux_installer.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e2e/test_019_config_krux_installer.py b/e2e/test_019_config_krux_installer.py index 0bc242b0..544e5c9c 100644 --- a/e2e/test_019_config_krux_installer.py +++ b/e2e/test_019_config_krux_installer.py @@ -370,11 +370,17 @@ def test_build_config(self, mock_get_system_lang, mock_create_app_dir): # patch assertions mock_create_app_dir.assert_called_once_with(name="local") + + if sys.platform in ("linux", "darwin"): + lang = "en_US.UTF-8" + else: + lang = "en_US" + config.setdefaults.assert_has_calls( [ call("destdir", {"assets": "mockdir"}), call("flash", {"baudrate": 1500000}), - call("locale", {"lang": "en_US.UTF-8"}), + call("locale", {"lang": lang}), ] )