17 lines
572 B
Python
17 lines
572 B
Python
"""Testing submodule with mock Autofocus 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 MockAutoFocusThing:
|
|
# Counter for checking functions were called
|
|
mock_call_count = {"looping_autofocus": 0}
|
|
|
|
def looping_autofocus(self, dz: int = 2000, start: str = "centre") -> None: # noqa: ARG002
|
|
"""Mock autofocus with no return"""
|
|
self.mock_call_count["looping_autofocus"] += 1
|