Move lt_test_utils into a shared testing directory
This commit is contained in:
parent
d08d4cd325
commit
4e043f3df2
7 changed files with 9 additions and 4 deletions
4
tests/__init__.py
Normal file
4
tests/__init__.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
"""Tests for the OpenFlexure Server.
|
||||
|
||||
Each test suite should be run separately.
|
||||
"""
|
||||
1
tests/shared_utils/__init__.py
Normal file
1
tests/shared_utils/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
"""Shared utilities for all test suites."""
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue