From f5584d256ad0642a1ff09973e44e6beddb7fadf3 Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Wed, 5 Oct 2022 11:52:30 -0500 Subject: [PATCH] TST #725 done moving? --- apstools/devices/tests/test_positioner_soft_done.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apstools/devices/tests/test_positioner_soft_done.py b/apstools/devices/tests/test_positioner_soft_done.py index dba1cc350..487754fc0 100644 --- a/apstools/devices/tests/test_positioner_soft_done.py +++ b/apstools/devices/tests/test_positioner_soft_done.py @@ -379,15 +379,18 @@ def test_same_position_725(target, calcpos): if calcpos.position == target: # First, move away from the target. status = calcpos.move(-target or 0.1 * (1 + random.random())) + assert status.done assert status.elapsed > 0, str(status) confirm_in_position(calcpos) # Move to the target position. status = calcpos.move(target) + assert status.done assert status.elapsed > 0, str(status) confirm_in_position(calcpos) # Do it again (the reason for issue #725). status = calcpos.move(target) + assert status.done assert status.elapsed > 0, str(status) confirm_in_position(calcpos)