Skip to content

Commit

Permalink
Property "led" removed from tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Jan 22, 2018
1 parent d53e801 commit e5738ce
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions miio/tests/test_airhumidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ def __init__(self, *args, **kwargs):
'temp_dec': 186,
'humidity': 62,
'buzzer': 'off',
'led': 'off',
'led_b': 2,
}
self.return_values = {
'get_prop': self._get_state,
'set_power': lambda x: self._set_state("power", x),
'set_mode': lambda x: self._set_state("mode", x),
'set_led': lambda x: self._set_state("led", x),
'set_led_b': lambda x: self._set_state("led_b", x),
'set_buzzer': lambda x: self._set_state("buzzer", x),
}
Expand Down Expand Up @@ -64,7 +62,6 @@ def test_status(self):
assert self.state().temperature == self.device.start_state["temp_dec"] / 10.0
assert self.state().humidity == self.device.start_state["humidity"]
assert self.state().mode == OperationMode(self.device.start_state["mode"])
assert self.state().led == (self.device.start_state["led"] == 'on')
assert self.state().led_brightness == LedBrightness(self.device.start_state["led_b"])
assert self.state().buzzer == (self.device.start_state["buzzer"] == 'on')

Expand Down Expand Up @@ -94,16 +91,6 @@ def led_brightness():
self.device.set_led_brightness(LedBrightness.Off)
assert led_brightness() == LedBrightness.Off

def test_set_led(self):
def led():
return self.device.status().led

self.device.set_led(True)
assert led() is True

self.device.set_led(False)
assert led() is False

def test_set_buzzer(self):
def buzzer():
return self.device.status().buzzer
Expand Down

0 comments on commit e5738ce

Please sign in to comment.