Skip to content

Commit

Permalink
Moebot tests: remove tests for vacuum
Browse files Browse the repository at this point in the history
  • Loading branch information
make-all committed Jul 20, 2024
1 parent c3a8a76 commit b7920f6
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/devices/test_moebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
LawnMowerActivity,
LawnMowerEntityFeature,
)
from homeassistant.components.vacuum import VacuumEntityFeature

from ..const import MOEBOT_PAYLOAD
from ..helpers import assert_device_properties_set
Expand Down Expand Up @@ -37,7 +36,6 @@ class TestMoebot(TuyaDeviceTestCase):

def setUp(self):
self.setUpForConfig("moebot_s_mower.yaml", MOEBOT_PAYLOAD)
self.subject = self.entities.get("vacuum")
self.mower = self.entities.get("lawn_mower")
self.mark_secondary(
[
Expand All @@ -54,19 +52,6 @@ def setUp(self):
)

def test_supported_features(self):
self.assertEqual(
self.subject.supported_features,
(
VacuumEntityFeature.CLEAN_SPOT
| VacuumEntityFeature.PAUSE
| VacuumEntityFeature.RETURN_HOME
| VacuumEntityFeature.SEND_COMMAND
| VacuumEntityFeature.START
| VacuumEntityFeature.STATE
| VacuumEntityFeature.STATUS
| VacuumEntityFeature.STOP
),
)
self.assertEqual(
self.mower.supported_features,
(
Expand All @@ -76,13 +61,6 @@ def test_supported_features(self):
),
)

async def test_async_stop(self):
async with assert_device_properties_set(
self.subject._device,
{COMMAND_DP: "CancelWork"},
):
await self.subject.async_stop()

def test_lawnmower_activity(self):
self.dps[STATUS_DP] = "ERROR"
self.assertEqual(self.mower.activity, LawnMowerActivity.ERROR)
Expand Down

0 comments on commit b7920f6

Please sign in to comment.