From f6cc7403e316b7bd692a1a50aa3d75f6a493016f Mon Sep 17 00:00:00 2001 From: jaknapper Date: Fri, 20 Jun 2025 14:57:49 +0100 Subject: [PATCH] Update test_smart_spiral_first_few_pos() as smart stack chooses a different z_estimate --- tests/test_scan_planners.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_scan_planners.py b/tests/test_scan_planners.py index f9b56a32..9fe192ba 100644 --- a/tests/test_scan_planners.py +++ b/tests/test_scan_planners.py @@ -183,8 +183,8 @@ def test_smart_spiral_first_few_pos(): xy_pos4, z_pos4 = planner.get_next_location_and_z_estimate() # ...(100, 0)... assert xy_pos4 == (100, 0) - # ... and it should get its focus from the most recent point as this was focussed - assert z_pos4 is new_z_focus + # ... and it should get its focus from the lowest neighbouring point + assert z_pos4 is z_focus assert planner.closest_focus_site(xy_pos4) == xyz_pos3