Skip to content

Commit 5478e99

Browse files
committed
Possible to remove test-cases?
1 parent eb10650 commit 5478e99

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/test_smile.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def th_prop_selector(arg, thermostat):
367367
if thermostat is None:
368368
return False
369369

370-
switcher = {
370+
selector = {
371371
"attributes": thermostat.extra_state_attributes,
372372
"compressor_state": thermostat.compressor_state,
373373
"cooling_state": thermostat.cooling_state,
@@ -381,18 +381,18 @@ def th_prop_selector(arg, thermostat):
381381
"setpoint": thermostat.target_temperature,
382382
"temperature": thermostat.current_temperature,
383383
}
384-
return switcher.get(arg)
384+
return selector.get(arg)
385385

386386
@staticmethod
387387
def bs_prop_selector(arg, b_sensor):
388388
"""GW_B_Sensor property selector function for device_test()."""
389-
switcher = {
389+
selector = {
390390
"attributes": b_sensor.extra_state_attributes,
391391
"icon": b_sensor.icon,
392392
"state": b_sensor.is_on,
393393
"notification": b_sensor.notification,
394394
}
395-
return switcher.get(arg)
395+
return selector.get(arg)
396396

397397
@pytest.mark.asyncio
398398
async def device_test(self, smile=pw_smile.Smile, testdata=None):
@@ -468,13 +468,13 @@ async def device_test(self, smile=pw_smile.Smile, testdata=None):
468468
continue
469469

470470
assert a_item["state"] == b_item["state"]
471-
if self.th_prop_selector(a_item["id"], thermostat):
472-
assert (
473-
self.th_prop_selector(
474-
a_item["id"], thermostat
475-
)
476-
== b_item["state"]
477-
)
471+
#if self.th_prop_selector(a_item["id"], thermostat):
472+
# assert (
473+
# self.th_prop_selector(
474+
# a_item["id"], thermostat
475+
# )
476+
# == b_item["state"]
477+
# )
478478
b_sensor = None
479479
if measure_key == "binary_sensors":
480480
b_sensor = pw_entities.GW_B_Sensor(

0 commit comments

Comments
 (0)