Fix typos when moving hardware test suit to new test env structure

This commit is contained in:
Julian Stirling 2025-12-18 17:48:33 +00:00
parent 782977e01c
commit 765404656a
3 changed files with 6 additions and 6 deletions

View file

@ -4,18 +4,18 @@ import pytest
import labthings_fastapi as lt
from .cam_test_utils import camera_test_client_and_server
from .cam_test_utils import camera_test_env
@pytest.fixture
def picamera_test_env() -> lt.ThingClient:
"""Initialise a test environment with only a StreamingPiCamera2 Thing."""
with camera_test_client_and_server() as env:
with camera_test_env() as env:
yield env
@pytest.fixture
def picamera_client() -> lt.ThingClient:
"""Initialise a test picamera_client (in a LabThings test env)."""
with camera_test_client_and_server() as env:
return env.get_thing_client["camera"]
with camera_test_env() as env:
yield env.get_thing_client("camera")