openflexure-microscope-server/tests/mock_things/mock_background_detect.py
2025-07-10 09:24:49 +01:00

18 lines
550 B
Python

"""Testing submodule with mock Background Detect 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.
"""
from openflexure_microscope_server.things.background_detect import ChannelDistributions
class MockBackgoundDetectThing:
background_distributions = ChannelDistributions(
means=[128.0, 128.0, 128.0],
standard_deviations=[3.0, 3.0, 3.0],
colorspace="LUV",
)