Sharpness monitor accepting 0 as None
This commit is contained in:
parent
59a93c673a
commit
78c01de6d5
2 changed files with 13 additions and 2 deletions
|
|
@ -129,6 +129,17 @@ def test_record_defaults_to_method(mock_stage, mock_camera):
|
|||
|
||||
assert monitor.record == SharpnessMethod.FOCUS_FOM
|
||||
|
||||
def test_zero_record_defaults_to_method(mock_stage, mock_camera):
|
||||
"""If record=0, only the selected method is recorded."""
|
||||
monitor = JPEGSharpnessMonitor(
|
||||
mock_stage,
|
||||
mock_camera,
|
||||
method=SharpnessMethod.FOCUS_FOM,
|
||||
record=0,
|
||||
)
|
||||
|
||||
assert monitor.record == SharpnessMethod.FOCUS_FOM
|
||||
|
||||
|
||||
def test_record_must_include_selected_method(mock_stage, mock_camera):
|
||||
"""The selected autofocus metric must also be recorded."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue