Update integration test for new labthings client exceptions
This commit is contained in:
parent
6ec60523cd
commit
ad8dd55cca
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue