Update testenvs with minimal app config

Worked out by Beth Probert
This commit is contained in:
jaknapper 2026-05-12 19:13:35 +01:00
parent ab25705edc
commit 5962c80fdc
4 changed files with 15 additions and 4 deletions

View file

@ -5,6 +5,8 @@ test_simulated_camera.py and for testing the consistency of camera APIs see
test_cameras.py.
"""
import tempfile
import numpy as np
import pytest
from PIL import Image
@ -19,7 +21,8 @@ from ..shared_utils.lt_test_utils import LabThingsTestEnv
def test_env() -> LabThingsTestEnv:
"""Yield a test environment with the Simulated Camera and Dummy Stage."""
thing_conf = {"camera": SimulatedCamera, "stage": DummyStage}
with LabThingsTestEnv(things=thing_conf) as env:
app_config = {"data_folder": tempfile.gettempdir()}
with LabThingsTestEnv(things=thing_conf, application_config=app_config) as env:
yield env