Merge branch 'v3-fix-csm-integration-test' into 'v3'

Provide both required arguments to `move_in_image_coordinates`

Closes #810

See merge request openflexure/openflexure-microscope-server!634
This commit is contained in:
Julian Stirling 2026-06-30 16:37:35 +00:00
commit a18fe8b58d

View file

@ -114,8 +114,14 @@ def test_camera_stage_mapping_calibration(simulation_test_env):
assert csm.image_to_stage_displacement_matrix is None
assert csm.last_calibration is None
# And therefore that actions error
with pytest.raises(lt.exceptions.FailedToInvokeActionError):
csm.move_in_image_coordinates(x=10)
with pytest.raises(
lt.exceptions.ServerActionError,
match=(
r"The camera_stage_mapping calibration is not yet available\. "
r"This probably means you need to run the calibration routine\."
),
):
csm.move_in_image_coordinates(x=10, y=0)
# Calibrate
csm.calibrate_xy()