Move hardware-specific-tests to tests dir

This commit is contained in:
Julian Stirling 2025-12-18 17:21:17 +00:00
parent 4e043f3df2
commit ef9a88104b
13 changed files with 7 additions and 221 deletions

View file

@ -1,21 +0,0 @@
"""Shared fixtures for picamera tests."""
import pytest
import labthings_fastapi as lt
from .cam_test_utils import camera_test_client_and_server
@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:
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"]