Tests for coercing stack params to valid values.

Co-authored with Julian Stirling
This commit is contained in:
Joe Knapper 2025-10-09 13:56:03 +01:00
parent fa6fdb1a67
commit 089beae01a
3 changed files with 111 additions and 4 deletions

View file

@ -292,8 +292,11 @@ def scan_thing_mocked_for_scan_data(smart_scan_thing, mocker):
mock_stage = mocker.Mock()
type(mock_stage).position = mocker.PropertyMock(return_value=MOCK_START_POS)
mock_autofocus = mocker.Mock()
smart_scan_thing._ongoing_scan = mock_ongoing_scan
smart_scan_thing._stage = mock_stage
smart_scan_thing._autofocus = mock_autofocus
return smart_scan_thing