From 304fd6dfe38700a697de78cb5e7f924139bcdc49 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Tue, 7 Jul 2026 16:07:30 +0100 Subject: [PATCH] Fix python unit tests for extra sangaboard action and setting --- tests/unit_tests/test_stage.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/unit_tests/test_stage.py b/tests/unit_tests/test_stage.py index f922ef65..84c82305 100644 --- a/tests/unit_tests/test_stage.py +++ b/tests/unit_tests/test_stage.py @@ -603,10 +603,13 @@ def test_thing_description_equivalence(dummy_stage, mocker): dummy_properties = set(dummy_td.properties.keys()) sanga_td = create_thing_without_server(SangaboardThing).thing_description() - # Remove known extra actions - sanga_actions = list(sanga_td.actions.keys()) - sanga_actions = set(sanga_actions) - sanga_properties = set(sanga_td.properties.keys()) + + # Sangaboard has one extra action for calibrating z-motor direction. This is + # handled in the webapp calibration wizard, and an extra setting for persisting it + sanga_extra_actions = {"calibrate_z_direction"} + sanga_extra_properties = {"z_axis_calibrated"} + sanga_actions = set(sanga_td.actions.keys()) - sanga_extra_actions + sanga_properties = set(sanga_td.properties.keys()) - sanga_extra_properties assert sanga_actions == dummy_actions == base_actions assert sanga_properties == dummy_properties == base_properties