Changes from review

This commit is contained in:
jaknapper 2026-05-14 10:52:33 +01:00
parent 5be8b0ecab
commit cbfbd84fa9
7 changed files with 14 additions and 21 deletions

View file

@ -5,8 +5,6 @@ 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
@ -21,8 +19,7 @@ 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}
app_config = {"data_folder": tempfile.gettempdir()}
with LabThingsTestEnv(things=thing_conf, application_config=app_config) as env:
with LabThingsTestEnv(things=thing_conf) as env:
yield env