openflexure-microscope-server/tests/mock_things/mock_csm.py
2025-07-10 13:27:41 +01:00

19 lines
586 B
Python

"""Testing submodule with mock Camera Stage Mapping Things.
These mocks are designed to be inserted as dependencies to provide specific
functionality and return values.
The mocks do not subclass Things. Instead, they return predefined
answers to functions.
"""
class MockCSMThing:
"""A mock CSM Thing that imports no code from CameraStageMapper.
The class needs functionality added to it over time as more complex
mocking is needed. It imports no code from CameraStageMapper so that coverage
is not artificially inflated.
"""
image_resolution = (123, 456)