Update test_camera and test_dummy_server for labthings-fastapi 0.0.12

This commit is contained in:
Julian Stirling 2025-12-14 20:04:48 +00:00
parent 0c3de60629
commit 70fc3516e6
2 changed files with 28 additions and 24 deletions

View file

@ -17,12 +17,12 @@ def camera_server() -> lt.ThingClient:
The test client will be needed for the camera to run async frame generation code.
"""
with tempfile.TemporaryDirectory() as tmpdir:
conf = {
thing_conf = {
"camera": "openflexure_microscope_server.things.camera.simulation:SimulatedCamera",
"stage": "openflexure_microscope_server.things.stage.dummy:DummyStage",
}
server = lt.ThingServer(things=conf, settings_folder=tmpdir)
server = lt.ThingServer(things=thing_conf, settings_folder=tmpdir)
yield server