Skip to content

Commit

Permalink
fixed bug on default locale if OS locale isnt supported II
Browse files Browse the repository at this point in the history
  • Loading branch information
qlrd committed Aug 26, 2024
1 parent 38963c9 commit 344576d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e/test_019_config_krux_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}),
]
)

Expand Down

0 comments on commit 344576d

Please sign in to comment.