Fix picamera test suite
This commit is contained in:
parent
6b97d2da44
commit
b494e7dc3c
1 changed files with 5 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
from openflexure_microscope_server.things.background_detect import ChannelDeviationLUV
|
||||||
from openflexure_microscope_server.things.camera.picamera import StreamingPiCamera2
|
from openflexure_microscope_server.things.camera.picamera import StreamingPiCamera2
|
||||||
|
|
||||||
from ...shared_utils.lt_test_utils import LabThingsTestEnv
|
from ...shared_utils.lt_test_utils import LabThingsTestEnv
|
||||||
|
|
@ -18,7 +19,10 @@ def camera_test_env(settings_folder: Optional[str] = None):
|
||||||
:param settings_folder: The settings folder for the camera, if none is supplied, new
|
:param settings_folder: The settings folder for the camera, if none is supplied, new
|
||||||
temporary directory will be used as the settings folder.
|
temporary directory will be used as the settings folder.
|
||||||
"""
|
"""
|
||||||
thing_conf = {"camera": StreamingPiCamera2}
|
thing_conf = {
|
||||||
|
"camera": StreamingPiCamera2,
|
||||||
|
"bg_channel_deviations_luv": ChannelDeviationLUV,
|
||||||
|
}
|
||||||
with LabThingsTestEnv(things=thing_conf, settings_folder=settings_folder) as env:
|
with LabThingsTestEnv(things=thing_conf, settings_folder=settings_folder) as env:
|
||||||
yield env
|
yield env
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue