Change the classes for gallery cards information to be XxxGalleryInfo
ScanInfo -> ScanGalleryInfo CaptureInfo -> CaptureGalleryInfo - note there were two classes called CaptureInfo, only one has been changed to deduplicate the names
This commit is contained in:
parent
d7421ccea5
commit
90f106c87d
5 changed files with 23 additions and 23 deletions
|
|
@ -21,7 +21,7 @@ from pydantic import ValidationError
|
|||
import labthings_fastapi as lt
|
||||
|
||||
from openflexure_microscope_server.things.background_detect import ChannelDeviationLUV
|
||||
from openflexure_microscope_server.things.camera import CaptureInfo, simulation
|
||||
from openflexure_microscope_server.things.camera import CaptureGalleryInfo, simulation
|
||||
from openflexure_microscope_server.things.camera.simulation import SimulatedCamera
|
||||
from openflexure_microscope_server.things.stage.dummy import DummyStage
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ def test_gallery_responses(camera, mocker, caplog):
|
|||
with tempfile.TemporaryDirectory() as tmpdir, caplog.at_level(logging.INFO):
|
||||
camera._data_dir = tmpdir
|
||||
|
||||
assert camera.gallery_data_schema == CaptureInfo
|
||||
assert camera.gallery_data_schema == CaptureGalleryInfo
|
||||
|
||||
# When we start there are no captures
|
||||
assert camera.get_data_for_gallery() == []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue