Move lt_test_utils into a shared testing directory

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

4
tests/__init__.py Normal file
View file

@ -0,0 +1,4 @@
"""Tests for the OpenFlexure Server.
Each test suite should be run separately.
"""

View file

@ -0,0 +1 @@
"""Shared utilities for all test suites."""

View file

@ -9,7 +9,7 @@ import labthings_fastapi as lt
from openflexure_microscope_server.things.camera.simulation import SimulatedCamera
from openflexure_microscope_server.things.stage.dummy import DummyStage
from .utilities.lt_test_utils import LabThingsTestEnv
from ..shared_utils.lt_test_utils import LabThingsTestEnv
@pytest.fixture

View file

@ -15,7 +15,7 @@ import piexif
import pytest
from PIL import Image
from .utilities.lt_test_utils import LabThingsTestEnv
from ..shared_utils.lt_test_utils import LabThingsTestEnv
@pytest.fixture

View file

@ -17,7 +17,7 @@ from openflexure_microscope_server.things.stage import (
)
from openflexure_microscope_server.things.stage.dummy import DummyStage
from .utilities.lt_test_utils import LabThingsTestEnv
from ..shared_utils.lt_test_utils import LabThingsTestEnv
# Keep the size and number of moves fairly small or the tests can take forever
point3d = st.tuples(

View file

@ -22,7 +22,7 @@ from openflexure_microscope_server.stitching import (
StitcherValidationError,
)
from .utilities.lt_test_utils import LabThingsTestEnv
from ..shared_utils.lt_test_utils import LabThingsTestEnv
# A global logger pretending to the logger from a thing
LOGGER = logging.getLogger("mock-thing_logger")