Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test(i18n): expect Simplified Chinese among the interface languages

rubenluetke10-beepe64ac8d848c8
diff --git a/tests/unit/brain/test_self_mod_tools.py b/tests/unit/brain/test_self_mod_tools.py
index b40ad9d0fd..fb9079ce9a 100644
--- a/tests/unit/brain/test_self_mod_tools.py
+++ b/tests/unit/brain/test_self_mod_tools.py
@@ -214,7 +214,7 @@ class TestListMutableSettings:
by_path = {entry["path"]: entry for entry in result.output}
assert by_path["tts.speed"]["value_type"] == "float"
assert by_path["ui.language"]["value_type"] == "enum"
- assert set(by_path["ui.language"]["allowed_values"]) == {"en", "de", "es"}
+ assert set(by_path["ui.language"]["allowed_values"]) == {"en", "de", "es", "zh"}
def test_current_values_match_fixture(self, tools: dict[str, Any]) -> None:
result = _exec(tools["list_mutable_settings"], {})
diff --git a/tests/unit/cu/indicator/test_appshot_card.py b/tests/unit/cu/indicator/test_appshot_card.py
index f1f70dc1f4..376d4f95f5 100644
--- a/tests/unit/cu/indicator/test_appshot_card.py
+++ b/tests/unit/cu/indicator/test_appshot_card.py
@@ -143,4 +143,4 @@ def test_the_card_hint_follows_the_app_language() -> None:
assert card_hint(Cfg) == _CARD_HINTS["de"]
Cfg.ui.language = "auto"
assert card_hint(Cfg) == _CARD_HINTS["en"]
- assert set(_CARD_HINTS) == {"de", "en", "es"}
+ assert set(_CARD_HINTS) == {"de", "en", "es", "zh"}
diff --git a/tests/unit/self_mod/test_schema_introspect.py b/tests/unit/self_mod/test_schema_introspect.py
index 7b59a8aba1..b53272c2c2 100644
--- a/tests/unit/self_mod/test_schema_introspect.py
+++ b/tests/unit/self_mod/test_schema_introspect.py
@@ -38,7 +38,7 @@ class TestReach:
assert "stt.bias_prompt" in paths
def test_literal_enum_field_is_mutable(self) -> None:
- # ui.language is Literal["en","de","es"] — a constrained string, fully
+ # ui.language is Literal["en","de","es","zh"] — a constrained string, fully
# settable by voice. A Literal must count as a primitive leaf.
paths = _paths(introspect_mutable_specs())
assert "ui.language" in paths
@@ -188,7 +188,7 @@ class TestDescribeField:
def test_enum_literal(self) -> None:
d = describe_field("ui.language")
assert d["value_type"] == "enum"
- assert set(d["allowed_values"]) == {"en", "de", "es"}
+ assert set(d["allowed_values"]) == {"en", "de", "es", "zh"}
def test_undeclared_extra_key_is_graceful(self) -> None:
# ui.theme is an extra="allow" key — no declared type to read.
@@ -221,7 +221,7 @@ class TestDescribeField:
def test_enum_literal_lists_allowed_values(self) -> None:
d = describe_field("ui.language")
assert d["value_type"] == "enum"
- assert set(d["allowed_values"]) == {"en", "de", "es"}
+ assert set(d["allowed_values"]) == {"en", "de", "es", "zh"}
def test_undeclared_extra_key_is_graceful(self) -> None:
# A key under an extra="allow" section that the schema does not declare