Skip to content

Commit b439dcb

Browse files
committed
Apply language settings from _common.yaml in slot combination tests
The lang_resources fixture builds its intents dict by hand and reads only skip_words from _common.yaml, so settings is dropped. Eight languages are therefore tested under a configuration Home Assistant never uses: zh-CN/zh-HK/zh-TW declare ignore_whitespace, and cs/de/ne/nl/vi declare filter_with_regex, but both fall back to the hassil defaults. common_dict is already loaded on the preceding line.
1 parent b97bd99 commit b439dcb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/test_slot_combinations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def lang_resources_fixture(language: str, intent_schemas: dict[str, Any]):
145145
with open(common_path, "r", encoding="utf-8") as common_file:
146146
common_dict = yaml.safe_load(common_file) or {}
147147
lang_intents_dict["skip_words"] = common_dict.get("skip_words", [])
148+
lang_intents_dict["settings"] = common_dict.get("settings", {})
148149

149150
# Load expansion rules
150151
rules_dict: dict[str, Any] = lang_intents_dict["expansion_rules"]

0 commit comments

Comments
 (0)