Address cooktop and range hood review
This commit is contained in:
1 parent
e7daa21931
commit
62caf769f2
6 files changed
+89
-20
No files matched your search
@@ -21,7 +21,7 @@ def _state(resources):
|
||||
def test_real_cooktop_fixture_has_expected_idle_state():
|
||||
state = _state(_load_device('cooktop'))
|
||||
|
||||
assert state['power_state'] == 'On'
|
||||
assert state['power_state'] is True
|
||||
assert state['any_burner_active'] is False
|
||||
assert state['burner_0_state'] == 'Ready'
|
||||
assert state['burner_5_state'] == 'Ready'
|
||||
@@ -59,10 +59,19 @@ def test_cooktop_profile_has_no_write_functions():
|
||||
for desc in descriptions)
|
||||
|
||||
|
||||
def test_known_na9300k_slots_are_present():
|
||||
def test_static_slot_superset_has_headroom_for_other_layouts():
|
||||
keys = {desc.key for desc in COOKTOP_MODE.entities}
|
||||
|
||||
assert {
|
||||
'burner_0_state', 'burner_1_state', 'burner_3_state',
|
||||
'burner_4_state', 'burner_5_state',
|
||||
} <= keys
|
||||
assert {f'burner_{slot}_state' for slot in range(8)} <= keys
|
||||
|
||||
|
||||
def test_variant_slot_outside_na9300k_layout_is_discovered():
|
||||
resources = _load_device('cooktop')
|
||||
resources['/mode/vs/0']['x.com.samsung.da.options'].append(
|
||||
'OperationState7_Ready',
|
||||
)
|
||||
|
||||
state = _state(resources)
|
||||
|
||||
assert state['burner_7_state'] == 'Ready'
|
||||
assert 'burner_2_state' not in state
|
||||
Reference in new issue
Block a user