@@ -180,11 +180,14 @@ def test_current_cleaning_mode(
180180 assert status_trait .current_cleaning_mode_name == expected_mode .value
181181
182182
183- def test_current_cleaning_mode_with_brush_up_mop () -> None :
184- """Test brush-up mop-only classification on supported devices."""
185- status_trait = _create_cleaning_mode_status_trait (is_support_main_brush_up_down_supported = True )
186- status_trait .fan_power = VacuumModes .OFF_RAISE_MAIN_BRUSH .code
187- status_trait .water_box_mode = WaterModes .STANDARD .code
183+ def test_current_cleaning_mode_with_main_brush_lift () -> None :
184+ """Test mop-only classification on a device with main-brush lift."""
185+ status_trait = _create_cleaning_mode_status_trait (
186+ is_support_main_brush_up_down_supported = True ,
187+ is_water_slide_mode_supported = True ,
188+ )
189+ status_trait .fan_power = VacuumModes .OFF .code
190+ status_trait .water_box_mode = WaterModes .PURE_WATER_FLOW_MIDDLE .code
188191 status_trait .mop_mode = CleanRoutes .STANDARD .code
189192
190193 assert status_trait .current_cleaning_mode == CleaningMode .MOP
@@ -291,17 +294,22 @@ def test_cleaning_mode_options_with_smart_mode() -> None:
291294 ]
292295
293296
294- def test_get_cleaning_mode_parameters_with_brush_up_mop () -> None :
295- """Test mop-only uses the brush-up mode when supported."""
296- status_trait = _create_cleaning_mode_status_trait (is_support_main_brush_up_down_supported = True )
297+ def test_get_cleaning_mode_parameters_qrevo_edge_2 () -> None :
298+ """Test the app-compatible Qrevo Edge 2 mop-only payload."""
299+ status_trait = _create_cleaning_mode_status_trait (
300+ is_support_main_brush_up_down_supported = True ,
301+ is_water_slide_mode_supported = True ,
302+ )
297303
298304 assert get_cleaning_mode_parameters (CleaningMode .MOP , status_trait ._device_features_trait ) == [
299305 {
300- "fan_power" : VacuumModes .OFF_RAISE_MAIN_BRUSH .code ,
301- "water_box_mode" : WaterModes .STANDARD .code ,
306+ "fan_power" : VacuumModes .OFF .code ,
307+ "water_box_mode" : WaterModes .PURE_WATER_FLOW_MIDDLE .code ,
302308 "mop_mode" : CleanRoutes .STANDARD .code ,
303309 }
304310 ]
311+ assert VacuumModes .OFF in status_trait .fan_speed_options
312+ assert VacuumModes .OFF_RAISE_MAIN_BRUSH not in status_trait .fan_speed_options
305313
306314
307315def test_get_cleaning_mode_parameters_without_clean_route_setting () -> None :
0 commit comments