Skip to content

Commit

Permalink
Tests: remove icon tests for devices affected by recent changes
Browse files Browse the repository at this point in the history
For coverage, we don't need all these to be testing the icon
functionality.  There are still some tests providing the coverage
we need.
  • Loading branch information
make-all committed Feb 27, 2024
1 parent d5b9203 commit 04f31b5
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 73 deletions.
17 changes: 0 additions & 17 deletions tests/devices/test_beca_bhp6000_thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,6 @@ async def test_set_fan_mode_to_on(self):
def test_extra_state_attributes(self):
self.assertEqual(self.subject.extra_state_attributes, {})

def test_icons(self):
self.dps[HVACMODE_DPS] = 1
self.assertEqual(self.subject.icon, "mdi:snowflake")
self.dps[HVACMODE_DPS] = 2
self.assertEqual(self.subject.icon, "mdi:fire")
self.dps[HVACMODE_DPS] = 3
self.assertEqual(self.subject.icon, "mdi:hvac-off")
self.dps[HVACMODE_DPS] = 4
self.assertEqual(self.subject.icon, "mdi:fire-alert")
self.dps[HVACMODE_DPS] = 5
self.assertEqual(self.subject.icon, "mdi:hvac")

self.dps[LIGHT_DPS] = True
self.assertEqual(self.basicLight.icon, "mdi:led-on")
self.dps[LIGHT_DPS] = False
self.assertEqual(self.basicLight.icon, "mdi:led-off")


class TestBecaBHP6000ThermostatC(TuyaDeviceTestCase):
__test__ = True
Expand Down
8 changes: 0 additions & 8 deletions tests/devices/test_eanons_humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,6 @@ def test_supported_features(self):
self.assertEqual(self.subject.supported_features, HumidifierEntityFeature.MODES)
self.assertEqual(self.fan.supported_features, FanEntityFeature.SET_SPEED)

def test_icon_is_humidifier(self):
"""Test that the icon is as expected."""
self.dps[HVACMODE_DPS] = True
self.assertEqual(self.subject.icon, "mdi:air-humidifier")

self.dps[HVACMODE_DPS] = False
self.assertEqual(self.subject.icon, "mdi:air-humidifier-off")

def test_current_humidity(self):
self.dps[CURRENTHUMID_DPS] = 75
self.assertEqual(self.subject.current_humidity, 75)
Expand Down
13 changes: 0 additions & 13 deletions tests/devices/test_eberg_cooly_c35hd.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,6 @@ def test_supported_features(self):
),
)

def test_icon(self):
self.dps[POWER_DPS] = True
self.dps[HVACMODE_DPS] = "1"
self.assertEqual(self.subject.icon, "mdi:fire")
self.dps[HVACMODE_DPS] = "2"
self.assertEqual(self.subject.icon, "mdi:water")
self.dps[HVACMODE_DPS] = "3"
self.assertEqual(self.subject.icon, "mdi:snowflake")
self.dps[HVACMODE_DPS] = "4"
self.assertEqual(self.subject.icon, "mdi:fan")
self.dps[POWER_DPS] = False
self.assertEqual(self.subject.icon, "mdi:hvac-off")

def test_temperature_unit(self):
self.dps[UNIT_DPS] = False
self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
Expand Down
11 changes: 0 additions & 11 deletions tests/devices/test_eberg_qubo_q40hd_heatpump.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ def test_supported_features(self):
),
)

def test_icon(self):
self.dps[POWER_DPS] = True
self.dps[HVACMODE_DPS] = "cold"
self.assertEqual(self.subject.icon, "mdi:snowflake")
self.dps[HVACMODE_DPS] = "hot"
self.assertEqual(self.subject.icon, "mdi:fire")
self.dps[HVACMODE_DPS] = "dehumidify"
self.assertEqual(self.subject.icon, "mdi:water-percent")
self.dps[POWER_DPS] = False
self.assertEqual(self.subject.icon, "mdi:hvac-off")

def test_temperature_unit(self):
self.dps[UNIT_DPS] = "c"
self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
Expand Down
13 changes: 0 additions & 13 deletions tests/devices/test_fersk_vind_2_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,6 @@ def test_supported_features(self):
),
)

def test_icon(self):
self.dps[POWER_DPS] = True
self.dps[HVACMODE_DPS] = "COOL"
self.assertEqual(self.subject.icon, "mdi:snowflake")
self.dps[HVACMODE_DPS] = "FAN"
self.assertEqual(self.subject.icon, "mdi:fan")
self.dps[HVACMODE_DPS] = "DRY"
self.assertEqual(self.subject.icon, "mdi:water")
self.dps[HVACMODE_DPS] = "HEAT"
self.assertEqual(self.subject.icon, "mdi:fire")
self.dps[POWER_DPS] = False
self.assertEqual(self.subject.icon, "mdi:hvac-off")

def test_temperature_unit(self):
self.dps[UNIT_DPS] = "C"
self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
Expand Down
11 changes: 0 additions & 11 deletions tests/devices/test_kogan_kawfpac09ya_airconditioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@ def test_supported_features(self):
| ClimateEntityFeature.TURN_ON,
)

def test_icon(self):
self.dps[POWER_DPS] = True
self.dps[HVACMODE_DPS] = "COOL"
self.assertEqual(self.subject.icon, "mdi:snowflake")
self.dps[HVACMODE_DPS] = "DRY"
self.assertEqual(self.subject.icon, "mdi:water")
self.dps[HVACMODE_DPS] = "FAN"
self.assertEqual(self.subject.icon, "mdi:fan")
self.dps[POWER_DPS] = False
self.assertEqual(self.subject.icon, "mdi:hvac-off")

def test_temperature_unit(self):
self.dps[UNIT_DPS] = "C"
self.assertEqual(self.subject.temperature_unit, UnitOfTemperature.CELSIUS)
Expand Down

0 comments on commit 04f31b5

Please sign in to comment.