Limit changes to translation support
This commit is contained in:
1 parent
da49825e2e
commit
82acc05d38
8 files changed
+18
-47
No files matched your search
@@ -45,10 +45,3 @@ def test_href_instance_name_becomes_translation_placeholder():
|
||||
)
|
||||
entity = _make_entity(desc, key_override='icemaker_one_enabled')
|
||||
assert entity.translation_placeholders == {'instance_name': 'Icemaker One'}
|
||||
|
||||
|
||||
def test_untranslated_vendor_entity_keeps_readable_fallback_name():
|
||||
desc = BinarySensorDesc(key='vendor_feature')
|
||||
entity = _make_entity(desc, key_override='vendor_feature_1')
|
||||
assert entity.translation_key is None
|
||||
assert entity._attr_name == 'Vendor Feature 1'
|
||||
@@ -355,11 +355,10 @@ class TestWashOptionToggleValidation:
|
||||
|
||||
def test_rejected_on_an_unsupported_course(self):
|
||||
rep = {'x.com.samsung.da.options': ['Course_1C', _BUBBLE_SOAK_SET]}
|
||||
issue = self._desc('bubble_soak').validate_fn(
|
||||
translation_key = self._desc('bubble_soak').validate_fn(
|
||||
'On', rep, _EDIT_COURSE_RESOURCES
|
||||
)
|
||||
assert issue.translation_key == 'bubble_soak_unavailable_for_cycle'
|
||||
assert issue.translation_placeholders == {}
|
||||
assert translation_key == 'bubble_soak_unavailable_for_cycle'
|
||||
|
||||
def test_pre_wash_and_intensive_use_their_own_availableset_field(self):
|
||||
rep = {'x.com.samsung.da.options': ['Course_30', _PRE_WASH_AVAILABLE_SET]}
|
||||
|
||||
Reference in new issue
Block a user