diff --git a/tests/integration_tests/test_actions.py b/tests/integration_tests/test_actions.py index d16df380..85aa71b4 100644 --- a/tests/integration_tests/test_actions.py +++ b/tests/integration_tests/test_actions.py @@ -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()