@@ -420,10 +420,11 @@ async def test_liquid_probe(
420
420
fake_liquid_settings : LiquidProbeSettings ,
421
421
mock_instrument_handlers : Tuple [Mock ],
422
422
mock_current_position_ot3 : AsyncMock ,
423
+ mock_ungrip : AsyncMock ,
423
424
mock_home_plunger : AsyncMock ,
424
425
) -> None :
426
+ mock_ungrip .return_value = None
425
427
backend = ot3_hardware .managed_obj ._backend
426
-
427
428
await ot3_hardware .home ()
428
429
mock_move_to .return_value = None
429
430
@@ -490,9 +491,10 @@ async def test_liquid_sensing_errors(
490
491
mock_instrument_handlers : Tuple [Mock ],
491
492
mock_current_position_ot3 : AsyncMock ,
492
493
mock_home_plunger : AsyncMock ,
494
+ mock_ungrip : AsyncMock ,
493
495
) -> None :
494
496
backend = ot3_hardware .managed_obj ._backend
495
-
497
+ mock_ungrip . return_value = None
496
498
await ot3_hardware .home ()
497
499
mock_move_to .return_value = None
498
500
@@ -787,6 +789,8 @@ async def test_gripper_action(
787
789
mock_ungrip .assert_called_once ()
788
790
mock_ungrip .reset_mock ()
789
791
await ot3_hardware .home ([OT3Axis .G ])
792
+ mock_ungrip .assert_called_once ()
793
+ mock_ungrip .reset_mock ()
790
794
await ot3_hardware .grip (5.0 )
791
795
mock_grip .assert_called_once_with (
792
796
gc .duty_cycle_by_force (5.0 , gripper_config .grip_force_profile ),
@@ -956,7 +960,9 @@ async def test_save_instrument_offset(
956
960
async def test_pick_up_tip_full_tiprack (
957
961
ot3_hardware : ThreadManager [OT3API ],
958
962
mock_instrument_handlers : Tuple [Mock ],
963
+ mock_ungrip : AsyncMock ,
959
964
) -> None :
965
+ mock_ungrip .return_value = None
960
966
await ot3_hardware .home ()
961
967
_ , pipette_handler = mock_instrument_handlers
962
968
backend = ot3_hardware .managed_obj ._backend
0 commit comments