Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Update tests/conftest.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Oram <[email protected]>
  • Loading branch information
d-perl and DominicOram authored May 7, 2024
1 parent b1a56a7 commit 48e31c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ def mock_async_motor_move(motor: Motor, val, *args, **kwargs):
def patch_async_motor(motor: Motor, initial_position=0):
set_sim_value(motor.user_setpoint, initial_position)
set_sim_value(motor.user_readback, initial_position)
motor.deadband._backend._set_value(0.001) # type: ignore
motor.motor_done_move._backend._set_value(1) # type: ignore
set_sim_value(motor.deadband, 0.001)
set_sim_value(motor.motor_done_move, 1)
return patch.object(
motor, "_move", AsyncMock(side_effect=partial(mock_async_motor_move, motor))
)
Expand Down

0 comments on commit 48e31c0

Please sign in to comment.