Skip to content

Commit a48c6ef

Browse files
committed
feat(test): add additional vacuum command tests for dustbin emptying and cleaning modes
1 parent 0e8480a commit a48c6ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/devices/traits/b01/q10/test_vacuum.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import pytest
66

7+
from roborock.data.b01_q10.b01_q10_code_mappings import YXCleanType, YXFanLevel
78
from roborock.devices.traits.b01.q10 import Q10PropertiesApi
89
from roborock.devices.traits.b01.q10.vacuum import VacuumTrait
910
from tests.fixtures.channel_fixtures import FakeChannel
@@ -32,6 +33,9 @@ def vacuumm_fixture(q10_api: Q10PropertiesApi) -> VacuumTrait:
3233
(lambda x: x.resume_clean(), {"205": {}}),
3334
(lambda x: x.stop_clean(), {"206": {}}),
3435
(lambda x: x.return_to_dock(), {"203": {}}),
36+
(lambda x: x.empty_dustbin(), {"203": 2}),
37+
(lambda x: x.set_clean_mode(YXCleanType.BOTH_WORK), {"137": 1}),
38+
(lambda x: x.set_fan_level(YXFanLevel.NORMAL), {"123": 2}),
3539
],
3640
)
3741
async def test_vacuum_commands(

0 commit comments

Comments
 (0)