From ad8dd55cca4aefa0bc0d3a2314c5ab06f6c82971 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Sun, 11 Jan 2026 16:01:19 +0000 Subject: [PATCH] Update integration test for new labthings client exceptions --- tests/integration_tests/test_actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests/test_actions.py b/tests/integration_tests/test_actions.py index 3635efc8..220ea6e8 100644 --- a/tests/integration_tests/test_actions.py +++ b/tests/integration_tests/test_actions.py @@ -17,9 +17,10 @@ import os import numpy as np import piexif import pytest -from httpx import HTTPStatusError from PIL import Image +import labthings_fastapi as lt + from ..shared_utils.lt_test_utils import LabThingsTestEnv THIS_DIR = os.path.dirname(os.path.abspath(__file__)) @@ -111,7 +112,7 @@ def test_camera_stage_mapping_calibration(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(HTTPStatusError): + with pytest.raises(lt.exceptions.FailedToInvokeActionError): csm.move_in_image_coordinates(x=10) # Calibrate